Update AHT10_ESP8266_LCD_i2c.ino

This commit is contained in:
enjoyneering 2020-03-20 10:15:40 -04:00 committed by GitHub
parent 7dc0f3e8e7
commit 7d8392c5ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,16 +75,17 @@ void setup()
while (myAHT10.begin(SDA, SCL) != true) while (myAHT10.begin(SDA, SCL) != true)
{ {
lcd.setCursor(0, 0); lcd.setCursor(0, 0);
lcd.print(F("AHT10 error")); lcd.print(F("AHT10 not connected or fail to load calibration coefficient"));
delay(5000); delay(5000);
} }
//Wire.setClock(400000); //experimental I2C speed! 400KHz, default 100KHz
//Wire.setClockStretchLimit(10000); //experimental I2C clock stretch intervals!, default 230usec
lcd.clear(); lcd.clear();
//Wire.setClock(400000); //experimental I2C speed! 400KHz, default 100KHz
lcd.print(F("AHT10 OK")); lcd.print(F("AHT10 OK"));
delay(1000); delay(2000);
lcd.clear(); lcd.clear();