![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
LCD test-font adjust
Dependencies: C12832-font
main.cpp@9:0cd4dc3b90a5, 2020-11-02 (annotated)
- Committer:
- gr91
- Date:
- Mon Nov 02 19:12:36 2020 +0000
- Revision:
- 9:0cd4dc3b90a5
- Parent:
- 8:84a8d88959fd
Json
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" |
gr91 | 8:84a8d88959fd | 3 | #include "Fonts/Arial12x12.h" |
dreschpe | 0:f6a57b843f79 | 4 | |
chris | 4:39c7c31b8fb0 | 5 | // Using Arduino pin notation |
chris | 4:39c7c31b8fb0 | 6 | C12832 lcd(D11, D13, D12, D7, D10); |
dreschpe | 1:1c6a9eaf55b5 | 7 | |
dreschpe | 0:f6a57b843f79 | 8 | int main() |
dreschpe | 0:f6a57b843f79 | 9 | { |
chris | 2:a87e255a8f3a | 10 | int j=0; |
chris | 2:a87e255a8f3a | 11 | lcd.cls(); |
gr91 | 8:84a8d88959fd | 12 | lcd.set_font((unsigned char*)Arial12x12); |
chris | 2:a87e255a8f3a | 13 | lcd.locate(0,3); |
chris | 4:39c7c31b8fb0 | 14 | lcd.printf("mbed application shield!"); |
dreschpe | 0:f6a57b843f79 | 15 | |
dreschpe | 0:f6a57b843f79 | 16 | while(true) { // this is the third thread |
chris | 2:a87e255a8f3a | 17 | lcd.locate(0,15); |
sarahmarshy | 6:f8cb706c480c | 18 | lcd.printf("Counting : %d",j++); |
chris | 2:a87e255a8f3a | 19 | wait(1.0); |
dreschpe | 0:f6a57b843f79 | 20 | } |
dreschpe | 0:f6a57b843f79 | 21 | } |