Juan Carlos Suárez Barón
/
k64f-lcd
LCD 2x16 example
Fork of k64f-lcd by
main.cpp
- Committer:
- juanitoinig84
- Date:
- 2016-06-02
- Revision:
- 2:0bca2a7bc648
- Parent:
- 1:2769c0bc7b9f
File content as of revision 2:0bca2a7bc648:
#include "mbed.h" #include "TextLCD.h" //TextLCD lcd(PTC3, PTC2, PTA2, PTB23, PTA1, PTB9);// rs, e, d4-d7 //4,6,(11,12,13,14) // LCD (RS, E, D4, D5, D6, D7) TextLCD lcd(PTE24, PTE25, PTC3, PTC2, PTA2, PTB23); //4, 6, 11, 12, 13, 14 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"); int iCounter = 0; while(1) { lcd.locate(8,1); lcd.printf("%d",iCounter); iCounter++; wait(1.0); } }