This is a header-only C++ style library (see files in main/include/) for driving the popular HD44780 LCD display from an ESP32 microcontroller.
Currently, there exist two Interfaces - one using PCF8574 expander via I2C and one using 4-bit GPIO connection.
Feel free to suggest or write other Interfaces (like for other expanders, or full 8-bit 12-pin communication).
Main source file contains simple tests. You can see the results here. See performance here.
See example in main/main.cpp.
- Move the files from
main/include/to your include directory. - #include the
HD44780.handPCF8574.horGPIO4BIT.hin your code. - Create
HD44780_PCF8574orHD44780_GPIO4BITobject. - Create
HD44780object with the earlier Interface object. - Done!