Skip to content

This is a project that uses the ESP8266 to control a 128x64 OLED display via I2C remotely.

License

Notifications You must be signed in to change notification settings

davidmcphee3/doorbellOLED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doorbellOLED

This is a project that uses the ESP8266 to control a 128x64 OLED display via I2C remotely. Upload this repo to the ESP board using the Arduino IDE. Make sure to change the ssid and pass variables in the credentials.h to match your own.

The IP to connect to will display on the serial monitor. The domain for the ESP will be printed on the OLED, but that will have to be changed to not doorbell.davidmcphee.ca.

How to add more buttons:

  1. Text Open doorbellOLED and find the void setup() section. Add this template at the bottom of the section.

server.on("/replaceThis", { configText("Custom Text"); });

"/replaceThis" is the command sent to the server. "Custom Text" is the custom message. homePage is the html page served after the request has been made. A new page can be linked but must be created as a new .h file and the line: #include "newPage.h" must be added. Note for creating HTML pages they must start with: const char newPage[] PROGMEM = R"=====( and end with: )=====";

  1. Image Go to davidmcphee.ca/image2oled.html and create your image. Take the output code and add it to the bitmaps.h file. The bitmap must start with: #define IMGx {
    where x is the image number. Next go to the doorbellOLED page and add this template after the #define rows: const unsigned char imgx [] PROGMEM = IMGx; and find the void setup() section. Add this template to the bottom:

server.on("/imgx", { configImg(imgx) }); A custom returned page can be added same as in 1.

About

This is a project that uses the ESP8266 to control a 128x64 OLED display via I2C remotely.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published