Reference

This article is a comprehensive guide to using the DFRobot RGB LCD library with Arduino, covering installation, communication protocols, and API functions for effective LCD control.

Library

Please download the LCD library: DFRobot RGB LCD. About How to install Libraries in Arduino IDE

Arduino Library (Github Repository)

Communication Protocol Description

This I2C 16x2 LCD Screen is using an I2C communication interface. It means it only needs 4 pins for the LCD display: VCC, GND, SDA, SCL.

API Description

  • lcd.init(): Initialize the LCD and master IIC
  • lcd.print("text"): Print a message to the LCD
  • lcd.setRGB(r, g, b): Set RGB backlight color
    • r: Red (range 0-255)
    • g: Green (range 0-255)
    • b: Blue (range 0-255)

Other Supplementary Information

Was this article helpful?

TOP