Dieter Dewachter
/
app-shield-LCD-Aceleration
Extra Program
main.cpp@6:f8cb706c480c, 2017-09-19 (annotated)
- Committer:
- sarahmarshy
- Date:
- Tue Sep 19 15:25:01 2017 +0000
- Revision:
- 6:f8cb706c480c
- Parent:
- 4:39c7c31b8fb0
- Child:
- 7:adfd46d88d34
Use mbed OS
Who changed what in which revision?
User | Revision | Line number | New 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); |
sarahmarshy | 6:f8cb706c480c | 16 | lcd.printf("Counting : %d",j++); |
chris | 2:a87e255a8f3a | 17 | wait(1.0); |
dreschpe | 0:f6a57b843f79 | 18 | } |
dreschpe | 0:f6a57b843f79 | 19 | } |