Hi
I have the Picaxe 18X and want to use an RTC plus an EEPROM chip. I couldn't find any mention to multiple i2c devices in the manuals. Then I found some code which simply used the i2cslave command again whenever it wanted to talk to a different device. Is this how I would do it?
To put it another way, some mock code:
I have the Picaxe 18X and want to use an RTC plus an EEPROM chip. I couldn't find any mention to multiple i2c devices in the manuals. Then I found some code which simply used the i2cslave command again whenever it wanted to talk to a different device. Is this how I would do it?
To put it another way, some mock code:
Code:
main:
i2cslave (rtc address, etc)
readi2c (rtc)
i2cslave (eeprom address, etc)
readi2c (eeprom)