Grove RGB LCD Display

/media/uploads/cmatz3/img_20160315_105256083_top.jpg

The Grove RGB LCD display is an LCD display with 2 lines of 16 characters. The display is backlit with an RGB backlight. The display is connected to an mbed microcontroller via an I2C interface. It can be purchased at http://www.seeedstudio.com/depot/Grove-LCD-RGB-Backlight-p-1643.html?cPath=34_36.

Wiring

MbedDiplay
VU (+5v)VCC
gndGND
p9SDA
p10SCL

In order to connect the mbed to the display you need to use the +5v pin, the gnd pin, and a set of I2C pins (in this case p9 and p10). The +5v and gnd pins on the mbed will connect to the VCC and GND pins on the display, and the SDA and SCL pins on the mbed will connect to SDA and SCL on the display. You will need 2 pull up resistors connected from the +5v pin to the SDA and SCL lines in order for the I2C lines to work. 3.3k ohm resistors are recommended for these pull up resistors, as seen in the diagram below.

/media/uploads/cmatz3/4180lab4.png

HelloWorld

Below is an example program for this display. The example program should display two lines of text on the display ("Hello World!" and "This is a test") while also cycling through colors on the RGB backlight.

Import library

Public Member Functions

Grove_LCD_RGB_Backlight (PinName sda, PinName scl)
Contructor.
void setRGB (char r, char g, char b)
Set RGB Color of backglight.
void clear ()
Removes all of the text from the display.
void print (char *str)
Prints text to the LCD display.
void locate (char col, char row)
Move cursor to specified location on the LCD screen.

Import programGrove_LCD_RGB_Backlight_HelloWorld

Example program for Grove RGB LCD display.

Data Sheets

RGB Data Sheet: http://www.seeedstudio.com/wiki/images/1/1c/PCA9633.pdf

LCD Data Sheet: http://www.seeedstudio.com/wiki/images/0/03/JHD1214Y_YG_1.0.pdf


Please log in to post comments.