diff options
Diffstat (limited to 'libraries/MultiLCD/examples/lcdhello/lcdhello.ino')
-rw-r--r-- | libraries/MultiLCD/examples/lcdhello/lcdhello.ino | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/libraries/MultiLCD/examples/lcdhello/lcdhello.ino b/libraries/MultiLCD/examples/lcdhello/lcdhello.ino index 517e88b..b5c6ffd 100644 --- a/libraries/MultiLCD/examples/lcdhello/lcdhello.ino +++ b/libraries/MultiLCD/examples/lcdhello/lcdhello.ino @@ -24,15 +24,32 @@ 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, }; +static const PROGMEM uint8_t tick[16 * 16 / 8] = +{0x00,0x80,0xC0,0xE0,0xC0,0x80,0x00,0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0x78,0x30,0x00,0x00,0x01,0x03,0x07,0x0F,0x1F,0x1F,0x1F,0x0F,0x07,0x03,0x01,0x00,0x00,0x00,0x00}; + +static const PROGMEM uint8_t cross[16 * 16 / 8] = +{0x00,0x0C,0x1C,0x3C,0x78,0xF0,0xE0,0xC0,0xE0,0xF0,0x78,0x3C,0x1C,0x0C,0x00,0x00,0x00,0x30,0x38,0x3C,0x1E,0x0F,0x07,0x03,0x07,0x0F,0x1E,0x3C,0x38,0x30,0x00,0x00}; + void setup() { + delay(1000); lcd.begin(); + //lcd.setFlags(FLAG_PIXEL_DOUBLE); + lcd.setFont(FONT_SIZE_SMALL); + lcd.println("ABCDEFGHIJK"); + lcd.setFont(FONT_SIZE_MEDIUM); + lcd.println("ABCDEFGHIJK"); + lcd.setFont(FONT_SIZE_XLARGE); + lcd.printLong(12345678); } void loop() { - lcd.clear(); - lcd.draw(smile, 40, 8, 48, 48); + return; + + lcd.draw(smile, 40, 0, 48, 48); + lcd.draw(tick, 40, 48, 16, 16); + lcd.draw(cross, 72, 48, 16, 16); delay(1000); lcd.clear(); @@ -61,4 +78,5 @@ void loop() lcd.printLong(12345678); delay(3000); + lcd.clear(); } |