summaryrefslogtreecommitdiff
path: root/libraries/MultiLCD/examples/lcdhello
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2013-06-23 00:14:41 +0800
committerStanley Huang <stanleyhuangyc@gmail.com>2013-06-23 00:14:41 +0800
commita428a3ae8cfe3c5a0b355ff437a31a5cba9965cf (patch)
tree0d4382c38399822b6dd4d1ed175603d565c13b7b /libraries/MultiLCD/examples/lcdhello
parent7f33c78305dc61642a223df575d3782d4e9038ca (diff)
download2021-arduino-obd-a428a3ae8cfe3c5a0b355ff437a31a5cba9965cf.tar.gz
2021-arduino-obd-a428a3ae8cfe3c5a0b355ff437a31a5cba9965cf.tar.bz2
2021-arduino-obd-a428a3ae8cfe3c5a0b355ff437a31a5cba9965cf.zip
update MultiLCD library
Diffstat (limited to 'libraries/MultiLCD/examples/lcdhello')
-rw-r--r--libraries/MultiLCD/examples/lcdhello/lcdhello.ino20
1 files changed, 5 insertions, 15 deletions
diff --git a/libraries/MultiLCD/examples/lcdhello/lcdhello.ino b/libraries/MultiLCD/examples/lcdhello/lcdhello.ino
index cbfbc9b..517e88b 100644
--- a/libraries/MultiLCD/examples/lcdhello/lcdhello.ino
+++ b/libraries/MultiLCD/examples/lcdhello/lcdhello.ino
@@ -24,8 +24,6 @@ static const PROGMEM uint8_t smile[48 * 48 / 8] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x0F,0x1F,0x1F,0x3F,0x3F,0x7F,0x7F,0x7E,0xFE,0xFE,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFE,0xFE,0x7E,0x7F,0x7F,0x3F,0x3F,0x1F,0x1F,0x0F,0x07,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
};
-#include "images.h"
-
void setup()
{
lcd.begin();
@@ -33,19 +31,11 @@ void setup()
void loop()
{
- //lcd.draw2x(frame0[0], 0, 124, 78, 58);
- //lcd.draw2x(frame0[0], 164, 124, 78, 58);
- //lcd.draw2x(frame0[0], 0, 0, 78, 58);
- //lcd.draw2x(frame0[0], 164, 0, 78, 58);
- lcd.clear();
- lcd.draw(smile, 40, 0, 48, 48);
- lcd.setCursor(0, 6);
- lcd.setFont(FONT_SIZE_MEDIUM);
- lcd.print("Microduino+BLE");
-
- delay(3000);
+ lcd.clear();
+ lcd.draw(smile, 40, 8, 48, 48);
+ delay(1000);
- lcd.clear();
+ lcd.clear();
lcd.setCursor(0, 0);
lcd.setFont(FONT_SIZE_SMALL);
lcd.print("Hello, world!");
@@ -70,5 +60,5 @@ void loop()
lcd.setFont(FONT_SIZE_XLARGE);
lcd.printLong(12345678);
- delay(3000);
+ delay(3000);
}