LCD Demo program for mbed application shield

Dependencies:   C12832

Fork of app-shield-LCD by Chris Styles

Committer:
chris
Date:
Thu Feb 06 15:13:17 2014 +0000
Revision:
4:39c7c31b8fb0
Parent:
3:2db94ee076ee
Child:
6:f8cb706c480c
First check in

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dreschpe 0:f6a57b843f79 1 #include "mbed.h"
chris 3:2db94ee076ee 2 #include "C12832.h"
dreschpe 0:f6a57b843f79 3
chris 4:39c7c31b8fb0 4 // Using Arduino pin notation
chris 4:39c7c31b8fb0 5 C12832 lcd(D11, D13, D12, D7, D10);
dreschpe 1:1c6a9eaf55b5 6
dreschpe 0:f6a57b843f79 7 int main()
dreschpe 0:f6a57b843f79 8 {
chris 2:a87e255a8f3a 9 int j=0;
chris 2:a87e255a8f3a 10 lcd.cls();
chris 2:a87e255a8f3a 11 lcd.locate(0,3);
chris 4:39c7c31b8fb0 12 lcd.printf("mbed application shield!");
dreschpe 0:f6a57b843f79 13
dreschpe 0:f6a57b843f79 14 while(true) { // this is the third thread
chris 2:a87e255a8f3a 15 lcd.locate(0,15);
chris 2:a87e255a8f3a 16 lcd.printf("Counting : %d",j);
chris 2:a87e255a8f3a 17 j++;
chris 2:a87e255a8f3a 18 wait(1.0);
dreschpe 0:f6a57b843f79 19 }
dreschpe 0:f6a57b843f79 20 }