Extra Program

Dependencies:   C12832 MMA7660

Committer:
chris
Date:
Wed Feb 05 15:32:38 2014 +0000
Revision:
3:2db94ee076ee
Parent:
2:a87e255a8f3a
Child:
4:39c7c31b8fb0
Updated to use the new generic library for the LCD

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 3:2db94ee076ee 4
chris 3:2db94ee076ee 5 C12832 lcd(p5, p7, p6, p8, p11);
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 2:a87e255a8f3a 12 lcd.printf("mbed application board!");
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 }