Update wled06_usermod.ino
This commit is contained in:
parent
9a0db83f83
commit
d5def30c59
@ -3,7 +3,6 @@
|
|||||||
#ifdef ARDUINO_ARCH_ESP32 //ESP32 boards
|
#ifdef ARDUINO_ARCH_ESP32 //ESP32 boards
|
||||||
uint8_t SCL_PIN = 22;
|
uint8_t SCL_PIN = 22;
|
||||||
uint8_t SDA_PIN = 21;
|
uint8_t SDA_PIN = 21;
|
||||||
// uint8_t RST_PIN = 16; // Uncoment for Heltec WiFi-Kit-8
|
|
||||||
OneWire oneWire(23);
|
OneWire oneWire(23);
|
||||||
#else //ESP8266 boards
|
#else //ESP8266 boards
|
||||||
uint8_t SCL_PIN = 5;
|
uint8_t SCL_PIN = 5;
|
||||||
@ -14,7 +13,7 @@ OneWire oneWire(13);
|
|||||||
//ESP8266 Wemos D1 mini board use SCL=5 SDA=4 while ESP32 Wemos32 mini board use SCL=22 SDA=21
|
//ESP8266 Wemos D1 mini board use SCL=5 SDA=4 while ESP32 Wemos32 mini board use SCL=22 SDA=21
|
||||||
#define U8X8_PIN_SCL SCL_PIN
|
#define U8X8_PIN_SCL SCL_PIN
|
||||||
#define U8X8_PIN_SDA SDA_PIN
|
#define U8X8_PIN_SDA SDA_PIN
|
||||||
//#define U8X8_PIN_RESET RST_PIN // Uncoment for Heltec WiFi-Kit-8
|
|
||||||
// Dallas sensor
|
// Dallas sensor
|
||||||
DallasTemperature sensor(&oneWire);
|
DallasTemperature sensor(&oneWire);
|
||||||
long temptimer = millis();
|
long temptimer = millis();
|
||||||
@ -30,8 +29,6 @@ long lastMeasure = 0;
|
|||||||
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 0.96" or 1.3"
|
// --> Second choise of cheap I2C OLED 128X64 0.96" or 1.3"
|
||||||
//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
|
||||||
// --> Third choise Heltec WiFi-Kit-8 with build-in OLED 128X32 0.91"
|
|
||||||
//U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(U8X8_PIN_RESET, U8X8_PIN_SCL, U8X8_PIN_SDA); // Constracor for Heltec WiFi-Kit-8
|
|
||||||
// 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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user