Simple I2C output to 4x20 LCD

Here you can share completed projects or parts of projects that may be useful to others. You may post files relevant to ZBasic - source code, schematics, etc.
Post Reply
audioguy
Posts: 15
Joined: 09 October 2009, 18:09 PM

Simple I2C output to 4x20 LCD

Post by audioguy »

Mike Perks suggested I try an I2C LCD instead of RS232 because of the much faster speed. I ordered a Newhaven Displays 4x20 white-on-blue, I2C-capable LCD. Works great with the ZX128ne using pins 11 and 12.

Newbie alert - don't expect clean, Zen-like code. My total time with the device and ZBasic is about 4 hours, including breadboard time. :-)

--jim
Attachments
zx_I2C.bas
(2.17 KiB) Downloaded 2995 times
audioguy
Posts: 15
Joined: 09 October 2009, 18:09 PM

Updated code

Post by audioguy »

This is an update on the previous I2C LCD code that implements most, but not all of Don Kinzer's suggestions.

Thanks, Don. I'll get the single char and int output functions in there ASAP.

--jim
Attachments
zx_I2C_revB0.bas
I2C LCD driver code (ZBasic) Rev B.0
(2.29 KiB) Downloaded 3091 times
Post Reply