Quote:
Originally Posted by FalconFour
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?