
The boot screen on my LCD shows LK204-25-WB-C74. My issue is the LK204-25 locks up after an I2C write...
What I've found is that after writing some amount of data to the display it freezes. Inserting delays between the I2COUT commands helps reduce the lockups but doesn't prevent it.
Power cycling the display has no effect. What does seem to work is powering the device off, removing the address jumpers J1 and J2, powering the device back on (effective giving it a new I2C address). I can then write to the new address or power it off, put the jumpers back and write to the old address. This works for some time and then it freezes up again. In either case I can never really write a full display of text before it stops working.
I assume its something in my code, but I'm not sure... I'm using 4.7k pullup resistors -- SDA and SCL lines are on pins 0 and 1 on my Basic Stamp.
Here's my code:
' {$STAMP BS2px}
' {$PBASIC 2.5}
SDA PIN 0 ' serial data line
SCL PIN 1 ' serial clock line
Main:
PAUSE 1000 ' wait a sec
I2COUT SDA, $5C, [$FE, 88]
PAUSE 100
I2COUT SDA, $5C, 0, [$08, "test1", $0A] ' this works
PAUSE 100
I2COUT SDA, $5C, 0, [$08, "test2", $0A] ' this is where I usually lock up
PAUSE 100
I2COUT SDA, $5C, 0, [$08, "test3", $0A]
I haven't tried writting to this device serially yet but I will.
Anyway... any insight or sample code anyone could share with me to get this working I'd sure appreachate it.
Thanks!
Matt