![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First program with shield
main.cpp@2:a87e255a8f3a, 2012-10-26 (annotated)
- Committer:
- chris
- Date:
- Fri Oct 26 10:49:28 2012 +0000
- Revision:
- 2:a87e255a8f3a
- Parent:
- 1:1c6a9eaf55b5
- Child:
- 3:2db94ee076ee
First check in
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dreschpe | 0:f6a57b843f79 | 1 | #include "mbed.h" |
dreschpe | 1:1c6a9eaf55b5 | 2 | #include "C12832_lcd.h" |
dreschpe | 0:f6a57b843f79 | 3 | |
chris | 2:a87e255a8f3a | 4 | C12832_LCD lcd; |
dreschpe | 1:1c6a9eaf55b5 | 5 | |
dreschpe | 0:f6a57b843f79 | 6 | int main() |
dreschpe | 0:f6a57b843f79 | 7 | { |
chris | 2:a87e255a8f3a | 8 | int j=0; |
chris | 2:a87e255a8f3a | 9 | lcd.cls(); |
chris | 2:a87e255a8f3a | 10 | lcd.locate(0,3); |
chris | 2:a87e255a8f3a | 11 | lcd.printf("mbed application board!"); |
dreschpe | 0:f6a57b843f79 | 12 | |
dreschpe | 0:f6a57b843f79 | 13 | while(true) { // this is the third thread |
chris | 2:a87e255a8f3a | 14 | lcd.locate(0,15); |
chris | 2:a87e255a8f3a | 15 | lcd.printf("Counting : %d",j); |
chris | 2:a87e255a8f3a | 16 | j++; |
chris | 2:a87e255a8f3a | 17 | wait(1.0); |
dreschpe | 0:f6a57b843f79 | 18 | } |
dreschpe | 0:f6a57b843f79 | 19 | } |