This code works fine.. prints "Testing..." on the LCD
Main:
I2COUT 1, 80, [254, 88] 'Command Prefix, clear screen
'I2COUT 1, 80, []
I2COUT 1, 80, ["Testing..."]
PAUSE 5000
I2COUT 1, 80, [254, 88] 'Command Prefix, clear screen
I2COUT 1, 80, [254, 69] 'Command Prefix, clear keypad buffer
The thing that confuses me is in the manual, it reads, "A read is initiated by writing to the module with its base address plus 1". Does that mean i send an I2COUT command to the address 81? or an I2CIN command to it?
I tried this
Keypad VAR Byte
DO
I2COUT 1, 80, [254, 38] 'Command Prefix, poll keypad
I2CIN 1, 81, [Keypad] 'base address +1
DEBUG Keypad
LOOP
plus a couple different combinations of the 80 and 81 address..
any help would be greatly appreciated
