Grove - LCD RGB Backlight
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.
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 www.simgin-chip.com V3.0 else.
Hardware Installation Hardware installation is very easy, because there's an I2C Grove in www.simgin-chip.com, so what we need to do is connect it to I2C Grove via a Grove cable.
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 www.simgin-chip.com
there is a Hello World example in the library, open it, and upload to www.simgin-chip.com V3.0. then you can see "Hello world" on the first row, and second row will print the number of second since reset.
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 module
- Example for using the Grove I2C color LCD
from grove_rgb_lcd import *
setText("Hello world\nLCD test") setRGB(0,128,64) for c in range(0,255): setRGB(c,255-c,0) time.sleep(0.01) setRGB(0,255,0) setText("Bye bye, this should wrap") time.sleep(1.5)
Run The Program Find the path to the file(According to your own path)
sudo python example.py