LCD 2x16 example
Fork of k64f-lcd by
Revision 2:0bca2a7bc648, committed 2016-06-02
- Comitter:
- juanitoinig84
- Date:
- Thu Jun 02 15:29:08 2016 +0000
- Parent:
- 1:2769c0bc7b9f
- Commit message:
- LCD 2 x 16 with counter
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jun 02 14:40:25 2016 +0000
+++ b/main.cpp Thu Jun 02 15:29:08 2016 +0000
@@ -9,10 +9,20 @@
int main()
{
+ wait(0.001);
lcd.cls();
lcd.locate(0,0);
lcd.printf("Hello World!\n");
+ wait(0.1);
lcd.locate(0,1);
lcd.printf("EasyBOD\n");
- while(1);
+
+ int iCounter = 0;
+ while(1)
+ {
+ lcd.locate(8,1);
+ lcd.printf("%d",iCounter);
+ iCounter++;
+ wait(1.0);
+ }
}
\ No newline at end of file
