Datasheet

5
3.3 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.
3.4 With Raspberry Pi
This example will change backlight color and display text. You should connect to GrovePi+ with it like the
following picture.