Difference between revisions of "Grove 16x2 LCD Series"
(→liens) |
(→Code) |
||
| Line 28: | Line 28: | ||
[[HelloWorld Grove LCD| HelloWorld Grove LCD.ino]]<br> | [[HelloWorld Grove LCD| HelloWorld Grove LCD.ino]]<br> | ||
| + | |||
| + | |||
| + | === Code 2 === | ||
| + | |||
| + | <pre> | ||
| + | #include <Wire.h> | ||
| + | #include "rgb_lcd.h" | ||
| + | |||
| + | rgb_lcd lcd; | ||
| + | |||
| + | /* | ||
| + | const int colorR = 255; | ||
| + | const int colorG = 0; | ||
| + | const int colorB = 0; | ||
| + | */ | ||
| + | |||
| + | void setup() | ||
| + | { | ||
| + | // set up the LCD's number of columns and rows: | ||
| + | lcd.begin(16, 2); | ||
| + | |||
| + | //lcd.setRGB(colorR, colorG, colorB); | ||
| + | |||
| + | // Print a message to the LCD. | ||
| + | lcd.print("hello, world!"); | ||
| + | |||
| + | delay(1000); | ||
| + | } | ||
| + | |||
| + | void loop() | ||
| + | { | ||
| + | // set the cursor to column 0, line 1 | ||
| + | // (note: line 1 is the second row, since counting begins with 0): | ||
| + | lcd.setCursor(0, 1); | ||
| + | // print the number of seconds since reset: | ||
| + | lcd.print(millis()/1000); | ||
| + | |||
| + | delay(100); | ||
| + | } | ||
| + | </pre> | ||
Revision as of 21:18, 8 June 2025
Grove - 16x2 LCD Series
16 Characters * 2 Lines
Operating Voltage : 3.3V / 5V
images
liens
https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight Librairie
https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight/archive/master.zip Librairie fichier Zip
http://wiki.seeedstudio.com/Grove-16x2_LCD_Series LCD wiki Grove-16x2
https://www.seeedstudio.com/Grove-16x2-LCD-White-on-Blue.html Shop Grove-16x2_LCD
Connectique
interface : I2C-bus
I2C Adresse: 0X3E
Code
install an Arduino library
Code 2
#include <Wire.h>
#include "rgb_lcd.h"
rgb_lcd lcd;
/*
const int colorR = 255;
const int colorG = 0;
const int colorB = 0;
*/
void setup()
{
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
//lcd.setRGB(colorR, colorG, colorB);
// Print a message to the LCD.
lcd.print("hello, world!");
delay(1000);
}
void loop()
{
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
delay(100);
}