Crate grove_lcd_rgb

Crate grove_lcd_rgb 

Source
Expand description

Grove LCD RGB Backlight Driver

A platform-agnostic driver for the Grove LCD RGB Backlight display using embedded-hal traits. This driver supports the 16x2 character LCD with RGB backlight control via I2C.

§Features

  • Full LCD control (clear, cursor positioning, etc.)
  • RGB backlight color control
  • Custom character support
  • Display scrolling
  • Cursor and blink control

§Example

use grove_lcd_rgb::GroveLcd;
 
let mut lcd = GroveLcd::new(i2c);
lcd.begin(16, 2).unwrap();
lcd.set_rgb(255, 0, 0).unwrap(); // Red backlight
lcd.print("Hello, World!").unwrap();

Structs§

GroveLcd
Grove LCD RGB Backlight driver

Enums§

DotSize
Dot size for LCD characters
LcdError
Errors that can occur when using the LCD

Constants§

LCD_ADDRESS
I2C address for the LCD text controller
RGB_ADDRESS
I2C address for the RGB backlight controller
RGB_ADDRESS_V5
Alternative RGB address for v5 hardware