![](/media/cache/profiles/JCSB.jpg.50x50_q85.jpg)
LCD 2x16 example
Fork of k64f-lcd by
Diff: main.cpp
- Revision:
- 1:2769c0bc7b9f
- Parent:
- 0:ee189687f32d
- Child:
- 2:0bca2a7bc648
diff -r ee189687f32d -r 2769c0bc7b9f main.cpp --- a/main.cpp Sat May 28 01:45:09 2016 +0000 +++ b/main.cpp Thu Jun 02 14:40:25 2016 +0000 @@ -1,9 +1,18 @@ #include "mbed.h" #include "TextLCD.h" -TextLCD lcd(PTC3, PTC2, PTA2, PTB23, PTA1, PTB9); +//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() -{ +{ + lcd.cls(); + lcd.locate(0,0); lcd.printf("Hello World!\n"); + lcd.locate(0,1); + lcd.printf("EasyBOD\n"); + while(1); } \ No newline at end of file