TP N°2 BTS SNEC Branly Amiens

Dependencies:   C12832 mbed

Fork of app-shield-LCD by Chris Styles

Committer:
chris
Date:
Fri Aug 01 14:30:24 2014 +0000
Revision:
5:f8ef5e45e488
Parent:
4:39c7c31b8fb0
Updated mbed library version

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 }