sketch_mar15a.ino (371B)
1 #include <Wire.h> 2 #include <LiquidCrystal_I2C.h> 3 4 LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3, POSITIVE); 5 6 void setup() 7 { 8 lcd.setBacklightPin(3,POSITIVE); 9 lcd.setBacklight(HIGH); 10 lcd.begin(16, 2); 11 lcd.clear(); 12 } 13 14 void loop() 15 { 16 lcd.setCursor(0,0); 17 lcd.print("jima.in"); 18 lcd.setCursor(0,1); 19 lcd.print("I2C Protocol"); 20 delay(1000); 21 }