Difference between revisions of "Grove 16x2 LCD Series"

From
Jump to: navigation, search
(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

16x2 LCD White on Blue 01.jpg 16x2 LCD White on Blue 02.jpg

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
16x2 LCD White on Blue Connect 01.jpg

Code

install an Arduino library

Add Library Zip.png

HelloWorld Grove LCD.ino


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);
}