Pin order correction (#662)

This commit is contained in:
srg74 2020-02-05 19:33:55 -05:00 committed by GitHub
parent fa7092cc17
commit ca1f25ecf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ lib_deps_external =
https://github.com/crankyoldgit/IRremoteESP8266.git https://github.com/crankyoldgit/IRremoteESP8266.git
#Time@1.5 #Time@1.5
#Timezone@1.2.1 #Timezone@1.2.1
#For use SSD1306 0.91" OLED display uncomment following #For use SSD1306 OLED display uncomment following
#U8g2@~2.27.2 #U8g2@~2.27.2
#For Dallas sensor uncomment following 2 lines #For Dallas sensor uncomment following 2 lines
#DallasTemperature@~3.8.0 #DallasTemperature@~3.8.0

View File

@ -5,7 +5,7 @@
#define U8X8_PIN_SCL 5 #define U8X8_PIN_SCL 5
#define U8X8_PIN_SDA 4 #define U8X8_PIN_SDA 4
// Dallas sensor // Dallas sensor
OneWire oneWire(12); OneWire oneWire(13);
DallasTemperature sensor(&oneWire); DallasTemperature sensor(&oneWire);
long temptimer = millis(); long temptimer = millis();
long lastMeasure = 0; long lastMeasure = 0;
@ -16,9 +16,9 @@ long lastMeasure = 0;
// https://github.com/olikraus/u8g2/wiki/u8x8setupcpp // https://github.com/olikraus/u8g2/wiki/u8x8setupcpp
// 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 0.91"
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 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
// 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