{"id":16516628,"url":"https://github.com/eadf/esp8266_pcd8544_example","last_synced_at":"2025-10-28T05:31:12.755Z","repository":{"id":27394004,"uuid":"30870284","full_name":"eadf/esp8266_pcd8544_example","owner":"eadf","description":"Demo of the pcd8544 driver","archived":false,"fork":false,"pushed_at":"2015-03-01T13:45:44.000Z","size":256,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T12:11:14.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eadf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-16T13:52:15.000Z","updated_at":"2021-08-11T14:55:11.000Z","dependencies_parsed_at":"2022-08-20T07:50:11.047Z","dependency_job_id":null,"html_url":"https://github.com/eadf/esp8266_pcd8544_example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eadf%2Fesp8266_pcd8544_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eadf%2Fesp8266_pcd8544_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eadf%2Fesp8266_pcd8544_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eadf%2Fesp8266_pcd8544_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eadf","download_url":"https://codeload.github.com/eadf/esp8266_pcd8544_example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238603669,"owners_count":19499490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-11T16:25:50.805Z","updated_at":"2025-10-28T05:31:12.377Z","avatar_url":"https://github.com/eadf.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp8266_pcd8544\n[PCD8544 LCD driver](https://github.com/eadf/esp8266_pcd8544) example for esp8266 (Nokia 5110 \u0026amp; 3110 display)\n\nThe driver is a direct port of code found at [arduino playground.](http://playground.arduino.cc/Code/PCD8544)\n\nGood news, the interface no longer requires 5 available GPIO outputs so an ESP-01 will indeed work. (But only if the RX pin of the esp is used.)\n\nThis is how the code is hooked up by default:\n\nPCD8544| ESP8266\n-------|------------------\nRST Pin 1 | GPIO4\nCE  Pin 2 | GPIO5\nDC  Pin 3 | GPIO12\nDin Pin 4 | GPIO13\nClk Pin 5 | GPIO14\n\nSome ESP-12 have GPIO4 \u0026 GPIO5 reversed.\n\nThe RST pin is optional, set it to a negative value and tie PCD8544 reset to ESP reset via a resistor.\n\nThe CE pin is optional, set it to a negative value and tie PCD8544 CE pin to GND via a resistor.\n\nAll of the pins are configurable, you just set the pins you want to use in the setting struct.\n\nI don't know if it is required but i put 1KΩ resistors on each GPIO pin, and it does not seem to cause any problems. \n\nTake a look at [esp_mqtt_lcd](https://github.com/eadf/esp_mqtt_lcd) to see another example on how the pcd8544 driver can be used as a library module (git subtree) in your own project.\n\nThe makefile is copied from [esp_mqtt.](https://github.com/tuanpmt/esp_mqtt)\n\n###Building and installing:\n\nFirst you need to install the sdk and the easy way of doing that is to use [esp_open_sdk.](https://github.com/pfalcon/esp-open-sdk)\n\nYou can put that anywhere you like (/opt/local/esp-open-sdk, /esptools etc etc)\n\nThen you could create a small ```setenv.sh``` file, containing the location of your newly compiled sdk and other platform specific info;\n```\nexport SDK_BASE=/opt/local/esp-open-sdk/sdk\nexport PATH=${SDK_BASE}/../xtensa-lx106-elf/bin:${PATH}\nexport ESPPORT=/dev/tty.usbserial \n```\n(or setup your IDE to do the same)\n\nTo make a clean build, flash and connect to the esp console you just do this in a shell:\n```\nsource setenv.sh # This is only needed once per session\nmake clean \u0026\u0026 make test\n```\n\nYou won't be needing ```esptool```, the makefile only uses ```esptool.py``` (provided by [esp_open_sdk](https://github.com/pfalcon/esp-open-sdk))\n\nI have tested this with sdk v0.9.5 and v0.9.4 (linux \u0026 mac)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feadf%2Fesp8266_pcd8544_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feadf%2Fesp8266_pcd8544_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feadf%2Fesp8266_pcd8544_example/lists"}