LCD Demo program for mbed application shield

Dependencies:   C12832 mbed

Fork of app-board-LCD by Chris Styles

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "C12832.h"
00003 
00004 // Using Arduino pin notation
00005 C12832 lcd(D11, D13, D12, D7, D10);
00006 
00007 int main()
00008 {
00009     int j=0;
00010     lcd.cls();
00011     lcd.locate(0,3);
00012     lcd.printf("mbed application shield!");
00013 
00014     while(true) {   // this is the third thread
00015         lcd.locate(0,15);
00016         lcd.printf("Counting : %d",j);
00017         j++;
00018         wait(1.0);
00019     }
00020 }