app-shield

Dependencies:   C12832 mbed

Fork of app-shield-LCD by Robert Tomczak

Committer:
jbleduc
Date:
Fri Sep 30 08:23:29 2016 +0000
Revision:
6:5a51edf4a4a3
Parent:
4:39c7c31b8fb0
ex tp2 mbed

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);
jbleduc 6:5a51edf4a4a3 12 lcd.printf("Seconde ecoulees : ");
dreschpe 0:f6a57b843f79 13
dreschpe 0:f6a57b843f79 14 while(true) { // this is the third thread
chris 2:a87e255a8f3a 15 lcd.locate(0,15);
jbleduc 6:5a51edf4a4a3 16 lcd.printf("%d",j);
chris 2:a87e255a8f3a 17 j++;
chris 2:a87e255a8f3a 18 wait(1.0);
dreschpe 0:f6a57b843f79 19 }
jbleduc 6:5a51edf4a4a3 20 }