The Adafruit Positive RGB 2x16 LCD is a versatile and vibrant display module capable of showing up to 32 characters across two lines, with the added feature of a full RGB (Red, Green, Blue) backlight. This allows for a wide range of colors to be displayed behind the text, making it suitable for various applications such as user interfaces, status displays, simple games, and any project where visual feedback is necessary.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | VCC | Power supply (5V) |
3 | SDA | I2C data line |
4 | SCL | I2C clock line |
5 | LED+ | Anode for the RGB backlight (5V) |
6 | R | Red cathode for the RGB backlight |
7 | G | Green cathode for the RGB backlight |
8 | B | Blue cathode for the RGB backlight |
#include <Wire.h>
#include <Adafruit_RGBLCDShield.h>
// Initialize the display with the I2C addr 0x7C
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield(0x7C >> 1);
void setup() {
// Set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Set the backlight color to green
lcd.setBacklight(0, 255, 0);
}
void loop() {
// Print a message to the LCD.
lcd.setCursor(0, 0);
lcd.print("Hello, World!");
}
Q: Can I use this display with a 3.3V system? A: Yes, but you will need to ensure that the I2C lines are level-shifted to be compatible with the 5V logic level of the LCD.
Q: How do I change the backlight color? A: You can change the backlight color by adjusting the PWM values sent to the R, G, and B pins.
Q: What is the maximum current the backlight can draw? A: The maximum current for the backlight will depend on the current-limiting resistor used. Check the datasheet for the RGB LEDs used in the backlight for their maximum current ratings.