WLED/usermods/ssd1306_i2c_oled_u8g2/README.md
Ivan Boyarkin f322abceb8 usermods: Add SSD1306 display with u8g2
This commit adds example of usermod file for displaying basic
infromation SSD1306 I2C OLED displya utilizing u8g2 library.

Related to:
https://github.com/Aircoookie/WLED/issues/389
2019-11-28 22:43:46 +01:00

856 B

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.