
LCD_CHAR_16x2 Freescale FRDM KL25Z
main.cpp@0:a056f714557f, 2014-07-08 (annotated)
- Committer:
- BrayanB
- Date:
- Tue Jul 08 02:52:20 2014 +0000
- Revision:
- 0:a056f714557f
LCD_CHAR_16x2 Freescale FRDM KL25Z
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
BrayanB | 0:a056f714557f | 1 | // Hello World! for the TextLCD |
BrayanB | 0:a056f714557f | 2 | |
BrayanB | 0:a056f714557f | 3 | #include "mbed.h" |
BrayanB | 0:a056f714557f | 4 | #include "TextLCD.h" |
BrayanB | 0:a056f714557f | 5 | |
BrayanB | 0:a056f714557f | 6 | TextLCD lcd(PTD1, PTD3, PTD2, PTD0, PTD5, PTA13); // rs, e, d4-d7 |
BrayanB | 0:a056f714557f | 7 | |
BrayanB | 0:a056f714557f | 8 | int main() { |
BrayanB | 0:a056f714557f | 9 | lcd.printf("Hi i'm Freescale\n"); |
BrayanB | 0:a056f714557f | 10 | lcd.locate(1, 5); |
BrayanB | 0:a056f714557f | 11 | lcd.printf(" FRDM-kl25z\n"); |
BrayanB | 0:a056f714557f | 12 | } |