Update to usermod Enclosure_with_OLED_temp_ESP07 (#607)
This commit is contained in:
parent
d2726aae90
commit
1723683370
@ -1,5 +1,7 @@
|
|||||||
# Almost universal controller board for outdoor applications
|
# Almost universal controller board for outdoor applications
|
||||||
This usermod is using ideas from @mrVanboy and @400killer
|
This usermod is using ideas from @mrVanboy and @400killer
|
||||||
|
## Project repository
|
||||||
|
- [Original repository](https://github.com/srg74/Controller-for-WLED-firmware) - Main controller repository
|
||||||
## Features
|
## Features
|
||||||
* SSD1306 128x32 and 128x64 I2C OLED display
|
* SSD1306 128x32 and 128x64 I2C OLED display
|
||||||
* On screen IP address, SSID and controller status (e.g. ON or OFF, recent effect)
|
* On screen IP address, SSID and controller status (e.g. ON or OFF, recent effect)
|
||||||
|
@ -17,15 +17,9 @@ long lastMeasure = 0;
|
|||||||
// or check the gallery:
|
// or check the gallery:
|
||||||
// https://github.com/olikraus/u8g2/wiki/gallery
|
// https://github.com/olikraus/u8g2/wiki/gallery
|
||||||
// --> First choise of cheap I2C OLED 128X32
|
// --> 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
|
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
|
// --> 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_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
|
// gets called once at boot. Do all initialization that doesn't depend on
|
||||||
// network here
|
// network here
|
||||||
void userSetup() {
|
void userSetup() {
|
||||||
@ -209,4 +203,4 @@ void userLoop() {
|
|||||||
u8x8.drawGlyph(0, 1, 68); // home icon
|
u8x8.drawGlyph(0, 1, 68); // home icon
|
||||||
u8x8.setFont(u8x8_font_open_iconic_weather_2x2);
|
u8x8.setFont(u8x8_font_open_iconic_weather_2x2);
|
||||||
u8x8.drawGlyph(0, 2, 66 + (bri > 0 ? 3 : 0)); // sun/moon icon
|
u8x8.drawGlyph(0, 2, 66 + (bri > 0 ? 3 : 0)); // sun/moon icon
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user