Grove - LCD RGB Backlight

From Wiki
Jump to: navigation, search


Done with tedious mono color backlight? This Grove enables you to set the color to whatever you like via the simple and concise Grove interface. It takes I2C as communication method with your microcontroller. So number of pins required for data exchange and backlight control shrinks from ~10 to 2, relieving IOs for other challenging tasks. Besides, Grove - LCD RGB Backlight supports user-defined characters. Want to get a love heart or some other foreign characters? Just take advantage of this feature and design it!

This product is a replacement of Grove - Serial LCD. If you are looking for primitive 16x2 LCD modules, we have green yellow backlight version and blue backlight version on sale also.

Serial LEC RGB Backlight Lcd.jpg


Input Voltage:5V Operating Current<60mA CGROM: 10880 bit CGRAM: 64*8 bit Colorful RGB Backlight Built-in English and Japanese fonts I2C communication, uses only two IOs Automatic power-on reset Suli-compatible Library Demonstration

This demonstration will show you how to use Grove - LCD RGB Backlight, we need a V3.0 else.

Hardware Installation Hardware installation is very easy, because there's an I2C Grove in, so what we need to do is connect it to I2C Grove via a Grove cable.

Serial LCD RGB Backlight Connect.jpg

Download Code and Upload You can download the demo code in github, click here, then extract it to anywhere.

If you have some problem with this step, please refer to Getting Start With

there is a Hello World example in the library, open it, and upload to V3.0. then you can see "Hello world" on the first row, and second row will print the number of second since reset.

Serial LCD RGB Backlight White.jpg

Change Color of Backlight One of Grove - LCD RGB Backlight's most important feature is: you can change the color backlight, and it's a very simple thing, just use the following function:

void setRGB(int r, int g, int b);

Then let's try a Red backlight.

Modify the code about color into :

const int colorR = 255; const int colorG = 0; const int colorB = 0; Upload the code again, woo, see the backlight turn to Red? Then why not try another color? Whatever you like.

With Raspberry Pi This example will change backlight color and display text. You should connect to GrovePi+ with it like the following picture.

Grovepi+ grove rgb lcd.jpg

  1. Grovepi + grove RGB LCD module
  1. Example for using the Grove I2C color LCD

from grove_rgb_lcd import *


   setText("Hello world\nLCD test")
   for c in range(0,255):
   setText("Bye bye, this should wrap")

Run The Program Find the path to the file(According to your own path)

  cd GrovePi/Software/Python/grove_rgb_lcd/

Run program

   sudo python


File:JHD1214Y YG 1.0.pdf