View Single Post
Old 12-07-2010, 08:26 PM   #12 (permalink)
mluckham
EcoModding Lurker
 
Join Date: Feb 2009
Location: Ontario, Canada
Posts: 35
Thanks: 2
Thanked 14 Times in 7 Posts
Quote:
Originally Posted by FalconFour View Post
I think the button inputs are read once per 500ms cycle, so if you interrupt the cycle with your own function, digitalWrite() the EEPROM power line high (it uses far less power than the max of the ATMega chip, so you can power it directly I'd imagine, and digital pins 10/11 are free), perform your interactions, then digitalWrite() it low again, that would still work for pins 4 and 5, I think...
I'm looking at interfacing to two I2C devices ... the MPGuino would be I2C Master to the EEPROM, and I2C Slave to the external, intelligent LCD module. In the latter case the slave (MPGuino) registers for
Code:
Wire.onReceive(receiveI2CEvent)
, the code need only check for legitimate I2C signalling or error conditions (if one of the buttons is pressed).

So do you think the buttons and the I2C signals can safely be wired together? Or will be I burning out my LCD protection diode again if I try?
  Reply With Quote