Pages: [1]   Go Down
Author Topic: I2C question  (Read 426 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
Online Online
Brattain Member
*****
Karma: 485
Posts: 18780
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 626
Posts: 34159
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: