User Manual
3/6/2018 I2C LCD2004 - Wiki
http://wiki.sunfounder.cc/index.php?title=I2C_LCD2004 3/5
lcd.print(" 20 cols, 4 rows "); // pad with spaces for centering
lcd.setCursor ( 0, 3 ); // go to the fourth row
lcd.print(" www.sunfounder.com ");
}
/*********************************************************/
void loop()
{
}
/************************************************************/
Step 4: Upload the code
Before upload the code ,you need to select correct Board and Port,please follow the steps:
1) Click Tools ->Board and select Arduino/Genuino Uno.
2) Then select Tools ->Port.
3) Click to the upload icon to upload the code to the control board
If "Done uploading" appears at the bottom of the window, it means the sketch has been successfully uploaded.
experimental phenomenon
You should now see your I2C LCD1602 display the flowing characters "Hello,world!","IIC/I2C LCD2004", "20 cols, 4 rows" and "www.sunfounder.com