7/23/22, 9:42 PM
Grove - 16x2 LCD - Seeed Wiki
https://wiki.seeedstudio.com/Grove-16x2_LCD_Series/
11/20
3).
Or, you can just click the icon
in upper right corner of the
code block to copy the following code into a new sketch in the
Arduino IDE.
1
#
include
<Wire.h>
2
#
include
"rgb_lcd.h"
3
4
rgb_lcd lcd;
5
6
/*
7
const int colorR = 255;
8
const int colorG = 0;
9
const int colorB = 0;
10
*/
11
12
void
setup
()
13
{
14
// set up the LCD's number of columns and rows:
15
lcd.begin(
16
,
2
);
16
17
//lcd.setRGB(colorR, colorG, colorB);
18
19
// Print a message to the LCD.
20
lcd.print(
"hello, world!"
);
21
22
delay(
1000
);
23
}
24
25
void
loop
()
26
{
27
// set the cursor to column 0, line 1
28
// (note: line 1 is the second row, since counting be
29
lcd.setCursor(
0
,
1
);
30
// print the number of seconds since reset: