Pages: [1]   Go Down
Author Topic: I2C connection send binary message more than 256 bytes  (Read 750 times)
0 Members and 1 Guest are viewing this topic.
Hong Kong
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8662
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: