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
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:
-
sda SDA pin on the mbed microcontroller which will be used to communicate with the display. scl SCL 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:
-
col Value for which column on the display the next text being printed will start at. row Value 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:
-
*str Pointer 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:
-
r Value for the red component of the RGB backlight (Between 0 and 255). g Value for the green component of the RGB backlight (Between 0 and 255). b Value for the blue component of the RGB backlight (Between 0 and 255).
Definition at line 34 of file Grove_LCD_RGB_Backlight.cpp.
Generated on Tue Jul 12 2022 15:16:26 by 1.7.2