{"id":27173755,"url":"https://github.com/tolacika/esp-lcd-example","last_synced_at":"2026-05-19T07:32:53.555Z","repository":{"id":285737505,"uuid":"959161718","full_name":"tolacika/esp-lcd-example","owner":"tolacika","description":"This repository demonstrates using ESP-IDF 5.4.1 with the new I2C driver to control an HD44780 2004A LCD via a PCF8574 I2C I/O expander. The main language is C.","archived":false,"fork":false,"pushed_at":"2025-04-02T11:24:22.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T22:42:46.398Z","etag":null,"topics":["2004","esp-idf","esp32","hd44780","hlf8574t","lcd","lib","pca8574","pcf8574"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tolacika.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-02T11:14:47.000Z","updated_at":"2025-08-25T05:27:23.000Z","dependencies_parsed_at":"2025-04-02T12:29:52.723Z","dependency_job_id":"0a7fe01f-5ee5-44d4-aa98-d086627d2938","html_url":"https://github.com/tolacika/esp-lcd-example","commit_stats":null,"previous_names":["tolacika/esp-lcd-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tolacika/esp-lcd-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolacika%2Fesp-lcd-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolacika%2Fesp-lcd-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolacika%2Fesp-lcd-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolacika%2Fesp-lcd-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tolacika","download_url":"https://codeload.github.com/tolacika/esp-lcd-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolacika%2Fesp-lcd-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33206320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:16:55.748Z","status":"ssl_error","status_checked_at":"2026-05-19T07:16:54.366Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2004","esp-idf","esp32","hd44780","hlf8574t","lcd","lib","pca8574","pcf8574"],"created_at":"2025-04-09T11:23:18.755Z","updated_at":"2026-05-19T07:32:53.523Z","avatar_url":"https://github.com/tolacika.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP-LCD Example\r\n\r\nThis repository demonstrates how to use ESP-IDF 5.4.1 with a new I2C driver to control an HD44780 2004A LCD via a PCF8574 I2C I/O expander.\r\n\r\n## Features\r\n\r\n- **ESP-IDF 5.4.1**: Utilizing the latest ESP-IDF framework.\r\n- **I2C Driver**: Includes a new I2C driver for improved communication.\r\n- **LCD Display**: Control an HD44780 2004A LCD display.\r\n- **PCF8574 I/O Expander**: Interface with the LCD using a PCF8574 I2C I/O expander.\r\n\r\n## Requirements\r\n\r\n- **ESP32 Development Board**\r\n- **HD44780 2004A LCD Display**\r\n- **PCF8574 I2C I/O Expander**\r\n- **ESP-IDF 5.4.1** or later\r\n\r\n## Setup\r\n\r\n1. **Clone the Repository**\r\n   ```sh\r\n   git clone https://github.com/tolacika/esp-lcd-example.git\r\n   cd esp-lcd-example\r\n   ```\r\n\r\n2. **Set Up ESP-IDF**\r\n   Follow the [ESP-IDF Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/) to set up the ESP-IDF environment.\r\n\r\n3. **Build and Flash**\r\n   ```sh\r\n   idf.py build\r\n   idf.py flash\r\n   ```\r\n\r\n4. **Monitor**\r\n   ```sh\r\n   idf.py monitor\r\n   ```\r\n\r\n## Usage\r\n\r\nThis example initializes the I2C driver and configures the HD44780 2004A LCD display via the PCF8574 I2C I/O expander. The code demonstrates basic LCD operations such as clearing the display, writing text, and setting the cursor position.\r\n\r\n## Code Overview\r\n\r\n- **main/lcd.c**: Contains the implementation for the LCD functions.\r\n  - Initializes the I2C master and the LCD display.\r\n  - Provides functions to set the cursor, write strings, clear the display, and control the backlight.\r\n- **main/lcd.h**: Header file for the LCD functions.\r\n  - Defines constants and function prototypes for LCD operations\r\n\r\n## Contributing\r\n\r\nContributions are welcome! Please fork this repository and submit pull requests for any improvements.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\r\n\r\n## Acknowledgments\r\n\r\n- [ESP-IDF](https://github.com/espressif/esp-idf)\r\n- [HD44780 2004A LCD](https://www.sparkfun.com/datasheets/LCD/HD44780.pdf)\r\n- [PCF8574 I2C I/O Expander](https://www.nxp.com/docs/en/data-sheet/PCF8574.pdf)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolacika%2Fesp-lcd-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftolacika%2Fesp-lcd-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolacika%2Fesp-lcd-example/lists"}