Go Down

Topic: I2C question (Read 478 times) previous topic - next topic

dudevlad

I am currently getting some data from a Libelium GPS on the Arduino and all the data must be sent on i2c to a windows pc. Can all the array be sent in only one i2c write or each item of the array must be sent separately?
Best regards, Vlad!

Nick Gammon

I wasn't aware you could use I2C to talk to a Windows PC. What hardware are you using to do that?

Given that it is possible, internally the Wire library has a 32-byte buffer (unless you change the library) so you would be limited to sending 32 bytes at a time.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

dudevlad

I am using a RoBoard110 as the master on the i2c.

Grumpy_Mike

Quote
Can all the array be sent in only one i2c write or each item of the array must be sent separately?

What ever you like, you design the protocol when you make the arduino an I2C slave.

Go Up