WLED/usermods/ssd1306_i2c_oled_u8g2
srg74 74741682bf
OLED contrast set to 10
Another OLED lifetime saving feature. With set to 10 is bright enough to see all labels, even more readable on cheap OLEDs.
2020-01-06 12:41:03 -05:00
..
assets usermods: Add SSD1306 display with u8g2 2019-11-28 22:43:46 +01:00
README.md usermods: Add SSD1306 display with u8g2 2019-11-28 22:43:46 +01:00
wled06_usermod.ino OLED contrast set to 10 2020-01-06 12:41:03 -05:00

SSD1306 128x32 OLED via I2C with u8g2

This usermod allows to connect 128x32 Oled display to WLED controlled and show the next information:

  • Current SSID
  • IP address if obtained
    • in AP mode and turned off lightning AP password is shown
  • Current effect
  • Current palette
  • On/Off icon (sun/moon)

Hardware

Hardware connection

Requirements

Functionality checked with:

  • commit 095429a7df
  • Wemos d1 mini
  • PlatformIO
  • Generic SSD1306 128x32 I2C OLED display from aliexpress

Platformio

Add U8g2@~2.27.2 dependency to lib_deps_external under [common] section in platformio.ini:

# platformio.ini
...
[common]
...
lib_deps_external =
  ...
  U8g2@~2.27.2
...

Arduino IDE

Install library U8g2 by oliver in Tools | Include Library | Manage libraries menu.