Code used to connect the Grove RGB LCD display to an mbed microcontroller.

Dependents:   Grove_LCD_RGB_Backlight_HelloWorld Test_BERTIN LASS_LoRa_mbed Affichage_MesureEnvironnement ... more

Embed: (wiki syntax)

« Back to documentation index

Grove_LCD_RGB_Backlight Class Reference

Grove_LCD_RGB_Backlight Class Reference

Grove_LCD_RGB_Backlight Class. More...

#include <Grove_LCD_RGB_Backlight.h>

Public Member Functions

 Grove_LCD_RGB_Backlight (PinName sda, PinName scl)
 Contructor.
void setRGB (char r, char g, char b)
 Set RGB color of backlight.
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.

Detailed Description

Grove_LCD_RGB_Backlight Class.

Used for connecting a Grove LCD RGB Backlit display to an mbed microcontroller via an I2C interface.

Definition at line 32 of file Grove_LCD_RGB_Backlight.h.


Constructor & Destructor Documentation

Grove_LCD_RGB_Backlight ( PinName  sda,
PinName  scl 
)

Contructor.

Creates an instance of the Grove_LCD_RGB_Backlight class.

Parameters:
sdaSDA pin on the mbed microcontroller which will be used to communicate with the display.
sclSCL pin on the mbed microcontroller which will be used to communicate with the display.

Definition at line 6 of file Grove_LCD_RGB_Backlight.cpp.


Member Function Documentation

void clear (  )

Removes all of the text from the display.

Definition at line 24 of file Grove_LCD_RGB_Backlight.cpp.

void locate ( char  col,
char  row 
)

Move cursor to specified location on the LCD screen.

Parameters:
colValue for which column on the display the next text being printed will start at.
rowValue for which row on the display the next text being printed will be printed on.

Definition at line 76 of file Grove_LCD_RGB_Backlight.cpp.

void print ( char *  str )

Prints text to the LCD display.

Parameters:
*strPointer to an array of characters which will be printed to the LCD screen.

Definition at line 57 of file Grove_LCD_RGB_Backlight.cpp.

void setRGB ( char  r,
char  g,
char  b 
)

Set RGB color of backlight.

Parameters:
rValue for the red component of the RGB backlight (Between 0 and 255).
gValue for the green component of the RGB backlight (Between 0 and 255).
bValue for the blue component of the RGB backlight (Between 0 and 255).

Definition at line 34 of file Grove_LCD_RGB_Backlight.cpp.