Go Down

Topic: I2C connection send binary message more than 256 bytes (Read 913 times) previous topic - next topic

fukkuen

as the topic..
i need to send the degree (0-360) from a slave arduino to the master,
but the 8 byte message only allows max 256,
how can i solve the problem?
thanks

johnwasser

THe slave breaks the integer into two bytes.  The master requests two bytes from the slave.  The slave sends the two bytes. The master receives the two bytes and merges them together into an integer.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up