EasyManua.ls Logo

Eckstein komponente KS0530 - Page 114

Default Icon
160 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
114
(5)Test Code
//***********************************************************************
***
/*
keyestudio sun_follower
lesson 5.1
I2C 1602
http://www.keyestudio.com
*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h> // includes the LiquidCrystal_I2C
Library
LiquidCrystal_I2C lcd(0x27, 16, 2); // set the LCD address to 0x27 for a
16 chars and 2 line display
void setup() {
lcd.init();
// Print a message to the LCD.
lcd.backlight(); //set backlight
lcd.setCursor(0,0); //set Cursor at(0,0)
lcd.print("Hello, World!"); //display "Hello, World!"
lcd.setCursor(0,1); //set Cursor at(0,1)