Stap 2: Broncode
#include < LiquidCrystal.I2C.h >
#include < usi_twi_master.h >
#include < tinywirem.h >
//
Als u wilt uw Lcd I2C Display draad aan uw ATtiny85, verbinding maken met de volgende pinnen:
//
ATtiny85 Pin1 -> NC
ATtiny85 Pin2 -> NC
ATtiny85 Pin3 -> NC
ATtiny85 Pin4 -> grond
ATtiny85 Pin5 -> LCD Sda
ATtiny85 Pin6 -> NC
ATtiny85 Pin7 -> LCD Scl
ATtiny85 Pin8 -> + 5V
//
LiquidCrystal_I2C lcd (0x27, 2, 1, 0, 4, 5, 6, 7, 3, positieve);
VOID Setup
{
LCD.begin (16, 2);
3 flash introductie
for (int i = 0; ik < 3; i ++)
{
LCD.backlight();
delay(150);
lcd.noBacklight();
delay(150);
}
LCD.backlight();
lcd.setCursor (2, 0);
LCD.Print("Instructables");
lcd.setCursor (6, 1);
LCD.Print("...");
}
void loop
{
}