I have started playing around with the rainbowduino, and I think I've hit a wall, in my lack of understanding about I2C communication.
My end goal is to be able to use the arduino to issue I2C commands to the rainbowduino so that it shows pretty lights the way I want.
Here's my progress so far:
-
Using a UART adapter, I believe I have successfully uploaded the rainbowduino sketch "Rainbow_CMD_V2_0" to the rainbowduino hardware.
-
Rainbowduino continues shows the "test pattern" (is this right?)
-
Hooked up arduino to rainbowduino like this
Arduino Analog 4 to Rainbowduino SDA
Arduino analog 5 to Rainbowduino SCL
Arduino 5V to Rainbowduino power header thing #1
Arduino Gnd o Rainbowduino power header thing #2
I read some info about I2C communication and as far as I can gather, the two-wire Wire library (master_writer) is the best sketch to use as a starting point. So I loaded that onto the arduino, but the rainbowduino doesn't do anything except continue displaying the test pattern.
I guess I'm just very confused on what goes between the Wire.beginTransmission(4) and the Wire.endTransmission() commands, so that the rainbowduino knows what I'm trying to do?