mirror of
https://github.com/enjoyneering/AHT10.git
synced 2024-10-03 18:09:02 -04:00
Update AHT10_ESP8266_LCD_i2c.ino
This commit is contained in:
parent
7dc0f3e8e7
commit
7d8392c5ab
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user