pico-examples
pico-examples copied to clipboard
Improve I2C LCD example
This PR improve the I2C LCD example in the following ways:
- Extracts driver code to a separate C file for code cleanliness
- Supports creating multiple instances of the driver so that multiple displays can be driven
- Improves performance by using better chosen delay values
- Has functionality to simplify printed formatted strings to the display
The following article was used as a reference for timing: https://web.alfredstate.edu/faculty/weimandn/lcd/lcd_initialization/lcd_initialization_index.html
This code has been tested on real hardware with a Pi Pico.
Fixes #654 Fixes #597