Example code for an ESP8266 to display contents from a webpage to an I2C LCD.
ESP8266 Code builds with Arduino IDE with the ESP8266 core installed.
Requires the ESP8266-I2C-LCD1602 library available at https://github.com/agnunez/ESP8266-I2C-LCD1602 to enable setting the I2C pins.
Default used here is SDA on D3 and SCL on D4 on the Wemos board. Other boards may vary, check the pinout.
GPIO pins are supposed to be 5v tolerant so no level shifting is required.
PHP Sample Script
The PHP example script ESP8266LCD.php is preformatted to match a 20x4 LCD screen. When using another size, adjust the ESP code and PHP script to match. More complex page parsing could be done, but this is easy.
This is a java webservice that allows a user to change the message using a web browser.
- To build
./gradlew build fatJar
- Run with
java -jar spark-wifi-display-all-1.0.0.jar
- Exit using CTRL+C or through task manager
Deploy on Heroku
You can deploy the spark service on Heroku. After creating an account, create a new app and point it to this Github project. Heroku will build and deploy your own instance to their cloud. After deployment, set the Config Variables wifi-user and wifi-pass to let you login.
2017-08-01 21:53:15 Line #1 some words more messages!!
Spark Wifi Display Edit Page