nox771 / i2c_t3

Enhanced I2C library for Teensy 3.x devices
157 stars 44 forks source link

Wire.write multiple bytes #32

Closed xpeedster closed 4 years ago

xpeedster commented 4 years ago

Hi, I want to senda variable called data (int data = 500) using Wire.write(data), but this only sends one byte, so my master receives 249.

I know there is Wire.receive(array, count) in order to send more than one byte, but that solution must have the data separated into bytes inside an array.

Is there a way to send the value 500 and to receive it as 500?

Thanks for your help.