James Grant / Mbed 2 deprecated NewMobileLCD

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "MobileLCD.h"
00003 
00004 MobileLCD lcd(p5, p6, p7, p8, p9);
00005 
00006 int main() {
00007 
00008     // clear the screen
00009     lcd.cls();
00010     lcd.setcircle(50, 50, 25, YELLOW);
00011     lcd.putchar(50, 50, SMALL, 65, 0x000000, 0xFFFFFF);
00012     lcd.putchar(60, 60, MEDIUM, 65, 0xFFFFFF, 0x000000);
00013     lcd.putchar(70, 70, LARGE, 'A', 0xFF0000, 0x0000FF);
00014     lcd.putchar(80, 80, LARGE, '0', 0xFFFFFF, 0x111111);
00015 
00016 //    lcd.putchar('E', 50, 50, SMALL, BLUE, YELLOW);
00017 }