ESP32 I2C LCD Library

MaxSydney
Posts: 7
Joined: Tue Mar 13, 2018 9:28 am

ESP32 I2C LCD Library

Postby MaxSydney » Mon Feb 18, 2019 9:30 am

I've put together a simple library for I2C LCD displays using the HD44780 driver to perform most of the basic tasks that might be useful for simple projects. I'm posting mainly because these displays are frequently used in small embedded projects and hopefully this can be of some help to beginners looking to migrate to the ESP-IDF from the Arduino environment.

The driver uses software delays rather than the busy flag, but that could potentially be something I could add in the future if people are interested.

This is my first published component for the ESP32, so feel free to post any comments/feedback.

Code & a simple example can be found here
https://github.com/maxsydney/ESP32-HD44780

Cheers.

l_canete
Posts: 3
Joined: Wed Apr 28, 2021 1:15 pm

Re: ESP32 I2C LCD Library

Postby l_canete » Sat May 22, 2021 5:16 pm

Hello Max,

First of all i want to thank you for your library. I have used it and it's really good.I have experimented a bit and modified the library and adapted it to the objected oriented way in C++. Here is the repository if you want to check it out: https://github.com/LucasCanete/HD44780-ESP-IDF-CPP

Comments and feedbacks are always welcome.

Greetings from Germany

Lucas

Estevo
Posts: 2
Joined: Wed Jun 16, 2021 1:55 pm

Re: ESP32 I2C LCD Library

Postby Estevo » Wed Jun 16, 2021 2:01 pm

I had a problem calling LCD_home, two black bands appear on the LCD, and when I run LCD_writeStr and LCD_setCursor, strange characters appear. After some tests I found the problem, the .master.clk_speed was too high, I set the value to 1000 and it worked perfectly, this is a tip if anyone has the same problem.

And thanks for the Max library, it's working fine.

Greetings from Brazil

bradkeifer
Posts: 4
Joined: Fri Oct 21, 2022 1:02 pm

Re: ESP32 I2C LCD Library

Postby bradkeifer » Fri Oct 21, 2022 10:49 pm

Hi folks,
Many thanks for the great work done by @MaxSydney.

I have improved upon that work and developed a reasonably complete LCD API for I2C-based LCD displays using the HD44780 chipset. It's my first ESP-IDF project and I have tried to align with the programming and documentation style guides. See https://github.com/bradkeifer/esp32-HD44780. I hope people find it useful. Feedback welcome at https://github.com/bradkeifer/esp32-HD44780/issues

tamiloli
Posts: 1
Joined: Sat May 27, 2023 7:37 am

Re: ESP32 I2C LCD Library

Postby tamiloli » Tue Feb 06, 2024 10:14 am

Hi, In my ESP32 IDF LCD display working not proper. In my reference library url is https://github.com/maxsydney/ESP32-HD44780 it return to display is not properly, why it happened? anyone please clear my problem. I share it my display.
Attachments
Screenshot from 2024-02-06 17-37-09.png
Screenshot from 2024-02-06 17-37-09.png (169.64 KiB) Viewed 3141 times

quiron
Posts: 1
Joined: Tue Feb 27, 2024 3:34 am

Re: ESP32 I2C LCD Library

Postby quiron » Tue Feb 27, 2024 3:38 am

Great component. Thanks for sharing your code. I am with the same problem here, the characters are truncated on the screen. I had to make some adapts to make the component work with the espressif idf 5.x.x.

Trying to figure out what's going on. Testing with esp32c3 supermini.

Who is online

Users browsing this forum: No registered users and 73 guests