From db9488aa8d03b1414f1e1de82483ed8a1107e040 Mon Sep 17 00:00:00 2001 From: madusha perera Date: Mon, 5 Mar 2018 18:32:38 +0530 Subject: [PATCH 1/2] Removed lcd.init() Redundant code. Might confuse novice programmers. :) --- examples/HelloWorld/HelloWorld.pde | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/HelloWorld/HelloWorld.pde b/examples/HelloWorld/HelloWorld.pde index 458c6d8..a73e090 100644 --- a/examples/HelloWorld/HelloWorld.pde +++ b/examples/HelloWorld/HelloWorld.pde @@ -9,7 +9,6 @@ LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars void setup() { lcd.init(); // initialize the lcd - lcd.init(); // Print a message to the LCD. lcd.backlight(); lcd.setCursor(3,0); From ea17a6c521b3830da972dc53cbda821a649057c2 Mon Sep 17 00:00:00 2001 From: madusha perera Date: Mon, 5 Mar 2018 18:58:44 +0530 Subject: [PATCH 2/2] Removed WIre.h import This is already has been included in the LiquidCrystal_I2C.h file. This will make the loader to load the same file twice to the microController. Will give bad practice to novice programmers. :) --- examples/HelloWorld/HelloWorld.pde | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/HelloWorld/HelloWorld.pde b/examples/HelloWorld/HelloWorld.pde index a73e090..234d115 100644 --- a/examples/HelloWorld/HelloWorld.pde +++ b/examples/HelloWorld/HelloWorld.pde @@ -1,7 +1,6 @@ //YWROBOT //Compatible with the Arduino IDE 1.0 //Library version:1.1 -#include #include LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display