I will try to explain :
I use in this moment .....writing a text in a I2C memory ........
for adr = 0 to 135
lookup adr,["WELLCOM ! .......................... 5"],c
I2cwrite I2CDAT , I2CCLK , $A0,ADR,[C]
pause 5
next adr
Read text :
i2cread I2CDAT , I2CCLK , $A0,J,[caracter]
Use " case " for select :
SELECT CASE CARACTER
CASE 65: SIR_NO=4 ;A
CASE 66: SIR_NO=9 ;B
CASE 67: SIR_NO=14 ;C
CASE 68: SIR_NO=19 ;D
CASE 69: SIR_NO=24 ;E
and .....go for select what leds are on .....
TABLOU:
LOOKUP OFSET,[_
$3F,$48,$48,$48,$3F,_ ;A 0-4
$36,$49,$49,$49,$7F,_ ;B 4-9
$22,$41,$41,$41,$3E,_ ;C 9-14
$3E,$41,$41,$41,$7F,_ ;D 14-19
$41,$49,$49,$49,$7F,_ ;E 19-24
I wish to write time to time in memory a temperature from a Onewire sensor tip DS1820 and when I read from memory to find there a ASCI CODE to can use same , in my program .
Bookmarks