Demo of using the LCD of the application board

Dependencies:   C12832 mbed

Fork of app-board-LCD by Chris Styles

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lcd.cpp Source File

lcd.cpp

00001 #include "mbed.h"
00002 #include "C12832.h"
00003 
00004 C12832 lcd(p5, p7, p6, p8, p11);
00005 static const float delay = 1;
00006 
00007 int main()
00008 {
00009     int counter = 0;
00010     lcd.cls();
00011     lcd.printf("hello world!");
00012     
00013     while (true) 
00014     {
00015         lcd.locate(0, 15);
00016         lcd.printf("counter is: %d", ++counter);
00017         wait(delay);
00018     }
00019 }