Skip to content

Commit ff901df

Browse files
committed
Adding .clear() to first example. Rolling lib version.
1 parent a7db049 commit ff901df

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

examples/Example1-HelloWorld/Example1-HelloWorld.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ void setup() {
4040
Wire.begin();
4141

4242
lcd.begin(Wire); //Set up the LCD for I2C communication
43+
44+
lcd.clear(); //Clear the display - this moves the cursor to home position as well
4345
lcd.print("Hello, World!");
4446
}
4547

@@ -50,4 +52,3 @@ void loop() {
5052
// Print the number of seconds since reset:
5153
lcd.print(millis() / 1000);
5254
}
53-

examples/Example2-Backlight/Example2-Backlight.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void setup() {
4040

4141
void loop() {
4242
lcd.setBacklight(0, 0, 0); //black is off
43-
lcd.clear();
43+
lcd.clear(); //Clear the display - this moves the cursor to home position as well
4444
lcd.print("Black (off)");
4545
delay(3000);
4646

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun SerLCD Arduino Library
2-
version=1.0.2
2+
version=1.0.3
33
author=Gaston R. Williams
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=Library for I2C, SPI, and Serial Communication with SparkFun SerLCD Displays

0 commit comments

Comments
 (0)