Go Down

Topic: I2C and the Colorduino (Read 1 time) previous topic - next topic

ofransen

Has anybody connected up several Colorduino's together using I2C?

I'm new to I2C so I'm not sure how you are supposed to give the address to the Colorduino boards. Would it be a constant in PROGMEM different for every Colorduino I use?

TIA!

Owen F. Ransen

madworm

If you use the arduino ide + wire library, you make the boards slaves and associate an address as well.

http://arduino.cc/en/Tutorial/MasterReader

Code: [Select]
#include <Wire.h>
// ...
Wire.begin(0x16); // join the bus with address 0x16
• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Go Up