This is a simple component to use the Grove-LCD RGB backlight display with ESPHome.
- Display text on the LCD
- Set the backlight color
- Set the backlight brightness (white only)
# Example configuration entry
display:
- platform: lcd_grove_rgb
dimensions: 16x2 # optional, default: 16x2
address: 0x3e # optional, default: 0x3e
backlight: 0x62 # optional, default: 0x62
lambda: |-
it.print(0, 0, "Hello World!");
update_interval: 1s
Uses the same print and printf methods as other LCD display components. See the LCD Display Component for more information.
Set the backlight color. The color is an RGB triplet, where each value is between 0 and 255. The default color is white (255, 255, 255).
it.backlight(); // Turn on the backlight with the default color (white)
it.backlight(128); // Set the backlight brightness to 128 (white)
it.backlight(255, 0, 0); // Set the backlight color to red
it.no_backlight(); // Turn off the backlight
Clears the display.
Sets the cursor to the home position.
Sets the cursor to the specified position.
it.set_cursor(0, 0); // Set the cursor to the first column of the first row
Turns the display on.
Turns the display off.