Example program printing text to the LCD on the mbed application board

Dependencies:   C12832 mbed

Fork of lab1 by Peter Drescher

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 
00005 C12832 lcd(p5, p7, p6, p8, p11);
00006 
00007 int main()
00008 {
00009     int j=0;
00010     lcd.cls();
00011     lcd.locate(0,3);
00012     lcd.printf("mbed application board!");
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 }