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.
ESP32 I2C LCD Library
Re: ESP32 I2C LCD Library
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
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
Re: ESP32 I2C LCD Library
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
And thanks for the Max library, it's working fine.
Greetings from Brazil
-
- Posts: 4
- Joined: Fri Oct 21, 2022 1:02 pm
Re: ESP32 I2C LCD Library
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
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
Re: ESP32 I2C LCD Library
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 (169.64 KiB) Viewed 3388 times
Re: ESP32 I2C LCD Library
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.
Trying to figure out what's going on. Testing with esp32c3 supermini.
Who is online
Users browsing this forum: No registered users and 68 guests