Now that I can successfully program my Attiny85's w/ TinySafeBoot from the Arduino IDE, it's time to do a little coding!
I hooked up my Arduino to Attiny via I2C :
Arduino A5 -> Tiny pin5
Arduino A4 -> Tiny pin7
I installed Rambo's TinyWireS (slave) library and dropped one of the examples onto the chip. On the arduino side, I started by running the scanI2CBus sketch which showed it could find the slave on the i2c bus. I modified the slave program to blink an LED when it receives data. SUCCESS!
Now that bits are flowing, its time to start thinking about what the messaging protocol will look like. I'll have to hash out what actions will occur on each slave. I don't even know where to start at this point, LOL!
references:
http://arduino.cc/en/Tutorial/MasterWriter#.UxSFwoVafVI
http://arduino.cc/en/reference/wire#.UxSDPYVafVI
https://github.com/rambo/TinyWire
No comments:
Post a Comment