Fixed wled06_usermod.ino

And added link to readme.md
This commit is contained in:
srg74 2020-01-19 18:53:11 -05:00
parent d7879d8853
commit 38b2adcaad
2 changed files with 3 additions and 7 deletions

View File

@ -1,5 +1,7 @@
# Almost universal controller board for outdoor applications
This usermod is using ideas from @mrVanboy and @400killer
## Firmware used
- [Original project repository](https://github.com/srg74/Controller-for-WLED-firmware) - Main controller repository
## Features
* SSD1306 128x32 and 128x64 I2C OLED display
* On screen IP address, SSID and controller status (e.g. ON or OFF, recent effect)

View File

@ -17,15 +17,9 @@ long lastMeasure = 0;
// or check the gallery:
// https://github.com/olikraus/u8g2/wiki/gallery
// --> First choise of cheap I2C OLED 128X32
<<<<<<< HEAD
U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(U8X8_PIN_NONE, U8X8_PIN_SCL, U8X8_PIN_SDA); // Pins are Reset, SCL, SDA
// --> Second choise of cheap I2C OLED 128X64
//U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(U8X8_PIN_NONE, U8X8_PIN_SCL, U8X8_PIN_SDA); // Pins are Reset, SCL, SDA
=======
//U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(U8X8_PIN_NONE, U8X8_PIN_SCL, U8X8_PIN_SDA); // Pins are Reset, SCL, SDA
// --> Second choise of cheap I2C OLED 128X64
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(U8X8_PIN_NONE, U8X8_PIN_SCL, U8X8_PIN_SDA); // Pins are Reset, SCL, SDA
>>>>>>> 1680c014057bb993974950f37b14369b398ca647
// gets called once at boot. Do all initialization that doesn't depend on
// network here
void userSetup() {
@ -209,4 +203,4 @@ void userLoop() {
u8x8.drawGlyph(0, 1, 68); // home icon
u8x8.setFont(u8x8_font_open_iconic_weather_2x2);
u8x8.drawGlyph(0, 2, 66 + (bri > 0 ? 3 : 0)); // sun/moon icon
}
}