https://github.com/magcode/esp-oled-display
An ESP8266 / SSD1322 based IOT OLED Display
https://github.com/magcode/esp-oled-display
esp8266 iot mqtt nodemcu ssd1322
Last synced: about 2 months ago
JSON representation
An ESP8266 / SSD1322 based IOT OLED Display
- Host: GitHub
- URL: https://github.com/magcode/esp-oled-display
- Owner: magcode
- License: gpl-3.0
- Created: 2020-08-02T14:32:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-04T20:55:44.000Z (almost 5 years ago)
- Last Synced: 2025-01-28T14:45:30.736Z (4 months ago)
- Topics: esp8266, iot, mqtt, nodemcu, ssd1322
- Language: C++
- Homepage:
- Size: 809 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp-oled-display
An ESP8266 / SSD1322 based IOT OLED Display controlled by MQTT.It shows inside and outside temperature, current time and whatever status text you like.

# Hardware & Wiring
Hardware needed:* NodeMCU
* OLED Display 3.12" 256*64 SSD1322## Display soldering
The display must be soldered for "4SPI"
## Wiring
```
NodeMCU - Display
----------------------------------------
D1 GPIO5 - PIN 15 / RESET
D2 GPIO4 - PIN 14 / DC
D7 HMOSI (GPIO13) - PIN 5 / SDIN (D1)
D8 HCS (GPIO15) - PIN 16 / CS
D5 HSCLK (GPIO14) - PIN 4 / SCLK (D0)
3.3V - PIN 2
GND - PIN 1
```# Building
I use VSC/Platform IOMake sure `#define U8G2_16BIT` is uncommented in `/lib/U8g2/src/clib/u8g2.h`
Add your WiFi SSID, password, MQTT server and topic in `src/Secrets.h`
# Controlling via MQTT
Send a JSON structure to the topic defined in `Secrets.h`
```
{
inside:23,
outside:18,
time:"23:33",
data:"Whatever",
contrast:255
}
```You can disable the display by sending
```
{
disable:true
}
```