RNovember
Well-known member
Hello,
I have never before tried picaxe I2C interfacing, and my first venture has proved discouraging.
I have a 24LC256 eeprom, 32k addresses, and I want to write to them sequentially. I thought I could do something like this:
I am using a 20m2
This gives me a syntax error on the 'hi2cout w1,b0' line every time. I have tried putting different symbols in front of w1 (like % and #) but it still doesn't work.
I tried reading the command description of this command, and it didn't help me.
I did put a hi2csetup command at the beginning of my code.
Thanks,
RNovember
I have never before tried picaxe I2C interfacing, and my first venture has proved discouraging.
I have a 24LC256 eeprom, 32k addresses, and I want to write to them sequentially. I thought I could do something like this:
I am using a 20m2
Code:
let w1=0
do while pinb.0=1
readadc b.2,b0
hi2cout w1,b0
inc w1
loop
I tried reading the command description of this command, and it didn't help me.
I did put a hi2csetup command at the beginning of my code.
Thanks,
RNovember