1 连线

来源:https://github.com/omersiar/ShiftedLCD

2 代码

https://github.com/omersiar/ShiftedLCD取得Lib,并导入Arduino IDE。
(用Git或者从页面上选择[Clone or download] -> [Download ZIP])

#include <ShiftedLCD.h>

LiquidCrystal LCD(9);

void setup() {
  LCD.begin(16, 2);
  LCD.print("hello, world!");
}

void loop() {
  LCD.setCursor(0, 1);
  LCD.print(millis()/1000);
}

3 其他