| ??? 02/04/09 18:42 Read: times |
#162066 - something like: Responding to: ???'s previous message |
uchar i2c_transmit(uchar address, uchar *trans_bytes);
void main(void)
{
uchar trans_bytes[6];
trans_bytes[0] = 7;
trans_bytes[1] = 11;
trans_bytes[2] = 42;
trans_bytes[3] = 0;
i2c_transmit(22,trans_bytes);
// OR
i2c_transmit(22,&trans_bytes[0]);
}
I would prefer: uchar i2c_transmit(uchar address, uchar *trans_bytes, uchar number_of_bytes); |
| Topic | Author | Date |
| dynamic parameters in an I2C definition possible? | 01/01/70 00:00 | |
| how about | 01/01/70 00:00 | |
| trans_byte buffer? | 01/01/70 00:00 | |
| something like: | 01/01/70 00:00 | |
| Updated, but errors on my part | 01/01/70 00:00 | |
| This | 01/01/70 00:00 | |
| I must be stuck on stupid | 01/01/70 00:00 | |
| I Think it is this | 01/01/70 00:00 | |
| Array of pointers to characters | 01/01/70 00:00 | |
| Try this code | 01/01/70 00:00 | |
| Works great!...One question though | 01/01/70 00:00 | |
| The warning is real | 01/01/70 00:00 | |
| Not exactly as I coded | 01/01/70 00:00 | |
Update......Problem solved | 01/01/70 00:00 |



