Juan Carlos Suárez Barón
/
k64f-lcd
LCD 2x16 example
Fork of k64f-lcd by
main.cpp@1:2769c0bc7b9f, 2016-06-02 (annotated)
- Committer:
- juanitoinig84
- Date:
- Thu Jun 02 14:40:25 2016 +0000
- Revision:
- 1:2769c0bc7b9f
- Parent:
- 0:ee189687f32d
- Child:
- 2:0bca2a7bc648
My LCD 2 x16 First version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
satelite | 0:ee189687f32d | 1 | #include "mbed.h" |
satelite | 0:ee189687f32d | 2 | #include "TextLCD.h" |
satelite | 0:ee189687f32d | 3 | |
juanitoinig84 | 1:2769c0bc7b9f | 4 | //TextLCD lcd(PTC3, PTC2, PTA2, PTB23, PTA1, PTB9);// rs, e, d4-d7 |
juanitoinig84 | 1:2769c0bc7b9f | 5 | //4,6,(11,12,13,14) |
juanitoinig84 | 1:2769c0bc7b9f | 6 | |
juanitoinig84 | 1:2769c0bc7b9f | 7 | // LCD (RS, E, D4, D5, D6, D7) |
juanitoinig84 | 1:2769c0bc7b9f | 8 | TextLCD lcd(PTE24, PTE25, PTC3, PTC2, PTA2, PTB23); //4, 6, 11, 12, 13, 14 |
satelite | 0:ee189687f32d | 9 | |
satelite | 0:ee189687f32d | 10 | int main() |
juanitoinig84 | 1:2769c0bc7b9f | 11 | { |
juanitoinig84 | 1:2769c0bc7b9f | 12 | lcd.cls(); |
juanitoinig84 | 1:2769c0bc7b9f | 13 | lcd.locate(0,0); |
satelite | 0:ee189687f32d | 14 | lcd.printf("Hello World!\n"); |
juanitoinig84 | 1:2769c0bc7b9f | 15 | lcd.locate(0,1); |
juanitoinig84 | 1:2769c0bc7b9f | 16 | lcd.printf("EasyBOD\n"); |
juanitoinig84 | 1:2769c0bc7b9f | 17 | while(1); |
satelite | 0:ee189687f32d | 18 | } |