20x4 LCD Help?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
jprizzle
Posts: 3
Joined: Fri Mar 26, 2021 6:13 am

20x4 LCD Help?

Post by jprizzle » Fri Mar 26, 2021 6:17 am

I noticed there is a couple libraries for 60x2 LCD's communicating over I2C, but I can't find any for this LCD here:

https://www.sparkfun.com/products/16398

If there are no libraries for this, do I need one? Or can I just write my own code? I am new to this, so if these are dumb questions I apologize.

User avatar
Roberthh
Posts: 3668
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: 20x4 LCD Help?

Post by Roberthh » Fri Mar 26, 2021 7:33 am

The command set is similar to the "standard" cheap lcd ones, with a few extenstions. And also sparkfun provides a Python driver. So you have two options:
a) Adapt the I2C access methods of the sparkfun driver.
b) Modify Dave Hylands LCD driver. https://github.com/dhylands/python_lcd.git

a) seems easier, since you have to re-implement only the few qwiic-c2c methods, as documented here: https://qwiic-i2c-py.readthedocs.io/en/ ... #qwiic-i2c

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: 20x4 LCD Help?

Post by scruss » Sat Mar 27, 2021 4:14 pm

SerLCDs are nice when used with a UART, as all you need to do is write() text and commands to the port and it will display. The Configuration & Command Set does almost everything you might want.

It's also useful that these are 3V3 devices now. The ancient SerLCD I have (uses a PIC16F) is a very 5V device, and so doesn't see as much use as it could.

Post Reply