i2c and 24lc256 reads / writes problem
Zap-o
Posts: 452
what am I doing wrong? Trying to simply read and or write to eeprom using the PASM I2C Driver object in the object exchange.
Is it simply because the variable is a long and the object pulls bytes?
var long MemVarOne Pub main i2c.initialize(scl) MemVarOne := Read_HighMem($8000) Pub Read_HighMem(address) return i2c.ReadLong(SCL,eepromAddress, address) Pub Write_HighMem(address, data) i2c.WriteLong(SCL,eepromAddress,address, data)
Is it simply because the variable is a long and the object pulls bytes?
Comments
Add something like this:
and try it.
James
eepromAddress = $A0
Still not going well. I must be overlooking something?
I solved it.