![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
chage a lib name
Fork of app-board-LCD by
main.cpp@3:37aea06abce5, 2013-09-30 (annotated)
- Committer:
- khayakawa
- Date:
- Mon Sep 30 00:50:46 2013 +0000
- Revision:
- 3:37aea06abce5
- Parent:
- 2:a87e255a8f3a
chage a lib name
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; |
khayakawa | 3:37aea06abce5 | 9 | float a; |
khayakawa | 3:37aea06abce5 | 10 | |
khayakawa | 3:37aea06abce5 | 11 | a= rand(); |
chris | 2:a87e255a8f3a | 12 | lcd.cls(); |
chris | 2:a87e255a8f3a | 13 | lcd.locate(0,3); |
chris | 2:a87e255a8f3a | 14 | lcd.printf("mbed application board!"); |
dreschpe | 0:f6a57b843f79 | 15 | |
dreschpe | 0:f6a57b843f79 | 16 | while(true) { // this is the third thread |
khayakawa | 3:37aea06abce5 | 17 | a= rand()/1000000; |
chris | 2:a87e255a8f3a | 18 | lcd.locate(0,15); |
khayakawa | 3:37aea06abce5 | 19 | lcd.printf("Counting : %d %.2f\n",j,a); |
chris | 2:a87e255a8f3a | 20 | j++; |
chris | 2:a87e255a8f3a | 21 | wait(1.0); |
dreschpe | 0:f6a57b843f79 | 22 | } |
dreschpe | 0:f6a57b843f79 | 23 | } |