- Wed Dec 19, 2012 12:49 am
#153321
I wonder if there's a better way to communicate with several slaves at the same time (or as close as possible, accounting for additional clocks within a loop). Right now, I'm doing something like this:
Code: Select all
I don't expect (nor require) anything to be read back from the slaves, I'm just sending data to them. Not sure if that makes any difference. But it does make me wonder: if all I'm doing is sending data out, can I set all the slaves to the same address? They're not sending anything back to the master anyway. That would get rid of the above loop at least ...for (int slave = 1; slave <= 10; slave++) {
Wire.beginTransmission(slave);
Wire.write(data);
Wire.endTransmission();
}