1602A 与I2C连接器连接

接线如下:

1602A 的1-16即VSS-VDD-V0-RS-RW-E-D0-D1-D2-D3-D4-D5-D6-D7-A-K 顺序连接I2C连接器正面从右边到左边的接线,即从GND端到LED端

I2C连接器 -- Arduino GND -- GND VCC -- 5V SDA -- A4 SCL -- A5

测试程序: //DFRobot.com //Compatible with the Arduino IDE 1.0 //Library version:1.1

#include <Wire.h> #include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup() { lcd.init(); // initialize the lcd

// Print a message to the LCD. lcd.backlight(); lcd.print("Hello, world!"); }

void loop() { }