booti2c

klaasje

Member
Hello all,

I use a 20x2 that i can not update after i put the original program in. That is because i seal the pcb. Only the i2c comes out.

This is the program i use. The first two lines i added. Can i now read a newer version out of the 24LC128 through the i2c.

Thanks

pokesfr $0A
booti2c




bit1 = pinb.2
bit2 = pinb.3
bit3 = pinb.4

if b0 = 2 then : b0 = 14
elseif b0 = 8 then : b0 = 16
elseif b0 =12 then : b0 = 18
else b0 = 192
endif

hi2csetup i2cslave,b0

dirsB = %01000000
dirsC = %10111111

do
get 2 , b1
pinsB = b1
pinsC = b1

loop
 

westaust55

Moderator
The BOOTi2c command should include an EEPROM slot number. As seems of same likely by default takes a value of zero (0).

Otherwise the idea works and will only download the program from EEPROM to the PICAXE if there is a revision change in the EEPROM.
 
Top