Gravity: I2C 16x2 Arduino LCD with RGB
Font Display SKU: DFR0554
Contents
•
•
•
•
•
•
1 Introduction
2 Specification
3 Board Overview
4 Tutorial
o 4.1 Requirements
o 4.2 Connection Diagram
o 4.3 Sample Code
o 4.4 Expected Results
5 FAQ
6 More Documents
Introduction
Gravity: I2C 16x2 Arduino LCD with RGB Font Display SKU: DFR0554
Accustomed to the same LCD screen, do you want to have a different experience? DFRobot
LCD1602 will bring you a new visual feeling, It is not the same as the previous LCD monochrome
screen, supports RGB full-color font, can provide 16 million kinds of color combinations. DFRobot
Gravity I2C 16x2 Arduino LCD with RGB Font Display use universal Gravity I2C interface, it means
only two communication lines, you can realize communication and backlight control. The LCD
screen can display 2x16 characters, support screen scrolling, cursor movement and other functions.
Through dedicated Arduino library, you can complete all the design without cumbersome wiring and
complex code.
Specification
•
•
•
•
•
•
•
•
Operating Voltage: 3.3V~5.0V
Operating Current: ≤60mA
Display Description: 16*2
Communication Mode: IIC/I2C
Backlight: RGB can adjust backlight
OperatingTemperature: -20 to +70℃
Storage Temperature: -30 to +80℃
Dimension: 87.0*32.0*13.0mm/3.43*1.26*0.51in
Board Overview
Gravity: I2C 16x2 Arduino LCD with RGB Font Display
Num
Label
Description
1
VCC
Positive Pole
2
GND
Negative Pole
3
SCL
IIC Clock Line
4
SDA
IIC Data Line
Tutorial
Follow the pin description to connect the hardware, and download the sample code to UNO, after
upload is successful, you can see the LCD display and backlight gradient.
Requirements
•
•
•
•
Hardware
DFRduino UNO R3 (or similar) x 1
Gravity: I/O Expansion x1
Sensor cable
•
•
Software
Arduino IDE, Click to Download Arduino IDE from Arduino®
Connection Diagram
Sample Code
Click here to download DFRobot LCD Library(Github) How to install Libraries in Arduino IDE
/*!
* file SetColor.ino
* brief SetColor.
*
* Copyright
[DFRobot](http://www.dfrobot.com), 2016
* Copyright
GNU Lesser General Public License
*
* version
* date
V1.0
2017-2-10
*/
#include
#include "DFRobot_LCD.h"
int r,g,b;
int t=0;
DFRobot_LCD lcd(16,2);
//16 characters and 2 lines of show
void setup() {
Serial.begin(9600);
// initialize
lcd.init();
}
void loop() {
r= (abs(sin(3.14*t/180)))*255;
g= (abs(sin(3.14*(t+60)/180)))*255;
b= (abs(sin(3.14*(t+120)/180)))*255;
t=t+3;
//get R,G,B value
lcd.setRGB(r, g, b);
//Set R,G,B Value
lcd.setCursor(0,0);
lcd.print("DFRobot");
lcd.setCursor(0,1);
lcd.print("Gravity: RGB LCD");
//R:0-255 G:0-255 B:0-255
delay(1);
}
Expected Results
LCD changes the font color.
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum.
More Documents
•
•
RGB LCD1602 Datasheet
RGB LCD1602 Dimension
https://www.dfrobot.com/wiki/index.php/Gravity:_I2C_16x2_Arduino_LCD_with_RGB_Font_Display_SKU:_DFR0554#More_Documents 7-16-18
很抱歉,暂时无法提供与“DFR0554”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 1+104.190991+12.46254
- 国内价格
- 1+132.77613
- 3+125.52944