Este visor LCD 1602 está equipado com 4 pinos. Deve-se conectar o SCL a analógico 5, SDA a analógico 4, VCC a + 5V y GND à massa.
Sample code:
//YWROBOT
//Compatible with the IDE 1.0
//Library version:1.1
#include
#include
void setup()
{
lcd.init(); // initialize the lcd
lcd.init();
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(3,0);
lcd.print(“Hello, world!”);
lcd.setCursor(2,1);
lcd.print(“Ywrobot !”);
lcd.setCursor(0,2);
lcd.print(“LCM IIC 2004”);
lcd.setCursor(2,3);
lcd.print(“Power By Ec-yuan!”);
}
void loop()
{}