diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-04-02 16:24:09 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-04-02 16:24:09 +0800 |
commit | b59be2fb6f05f43e93ce70bd140ab7149fa18c40 (patch) | |
tree | 5984c4c3c8ea7618ed478ff3deece05d4045ff17 /libraries/MultiLCD/examples/lcdhello | |
parent | 509f7a67724bca9a3222a41c870da747df97f720 (diff) | |
download | 2021-arduino-obd-b59be2fb6f05f43e93ce70bd140ab7149fa18c40.tar.gz 2021-arduino-obd-b59be2fb6f05f43e93ce70bd140ab7149fa18c40.tar.bz2 2021-arduino-obd-b59be2fb6f05f43e93ce70bd140ab7149fa18c40.zip |
add MultiLCD library
Diffstat (limited to 'libraries/MultiLCD/examples/lcdhello')
-rw-r--r-- | libraries/MultiLCD/examples/lcdhello/lcdhello.ino | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libraries/MultiLCD/examples/lcdhello/lcdhello.ino b/libraries/MultiLCD/examples/lcdhello/lcdhello.ino new file mode 100644 index 0000000..55f07e5 --- /dev/null +++ b/libraries/MultiLCD/examples/lcdhello/lcdhello.ino @@ -0,0 +1,20 @@ +#include <Arduino.h> +#include <Wire.h> +#include <MultiLCD.h> + +//LCD_OLED lcd; /* for I2C OLED module */ +//LCD_PCD8544 lcd; /* for LCD4884 shield or Nokia 5100 screen module */ +LCD_1602 lcd; /* for LCD1602 shield */ + +void setup() +{ + lcd.begin(); + lcd.setCursor(0, 0); + lcd.print("Hello, World"); + lcd.setCursor(0, 1); + lcd.printLarge("12345"); +} + +void loop() +{ +} |