From e5bd12083cb05072ee53744c6bdd65dcd5f91f28 Mon Sep 17 00:00:00 2001 From: enjoyneering Date: Fri, 20 Mar 2020 10:25:23 -0400 Subject: [PATCH] Update AHT10_ESP8266_LCD_i2c.ino --- examples/AHT10_ESP8266_LCD_i2c/AHT10_ESP8266_LCD_i2c.ino | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/AHT10_ESP8266_LCD_i2c/AHT10_ESP8266_LCD_i2c.ino b/examples/AHT10_ESP8266_LCD_i2c/AHT10_ESP8266_LCD_i2c.ino index 046dc32..bf66469 100644 --- a/examples/AHT10_ESP8266_LCD_i2c/AHT10_ESP8266_LCD_i2c.ino +++ b/examples/AHT10_ESP8266_LCD_i2c/AHT10_ESP8266_LCD_i2c.ino @@ -60,10 +60,8 @@ void setup() /* LCD connection check */ while (lcd.begin(LCD_COLUMNS, LCD_ROWS, LCD_5x8DOTS, SDA, SCL) != true) //20 colums, 4 rows, 5x8 pixels char size { - digitalWrite(LED, LOW); - delay(500); - digitalWrite(LED, HIGH); - delay(500); + Serial.println(F("PCF8574 is not connected or lcd pins declaration is wrong. Only pins numbers: 4,5,6,16,11,12,13,14 are legal.")); + delay(5000); } lcd.print(F("PCF8574 is OK")); //(F()) saves string to flash & keeps dynamic memory free