Loading...
Pages: [1]   Go Down
Author Topic: I2C connection send binary message more than 256 bytes  (Read 579 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: 108
Posts: 6607
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

Pages: [1]   Go Up
Print
 
Jump to: