Interfaccia I2C per display LCD

I display LCD possono essere utilizzati con un'interfaccia di tipo I2C. Di seguito il codice da utilizzare con Arduino.

#include 

LiquidCrystal_I2C lcd(0x3F, 16, 2);

void setup() {
  // put your setup code here, to run once:
  lcd.init();
  lcd.backlight();
}

void loop() {
  // put your main code here, to run repeatedly:
  lcd.setCursor(0, 0);
  lcd.print("ESPERIENZE");
  lcd.setCursor(4, 1);
  lcd.print("ELETTRONICHE");

  while(1);
}

Commenti