A sample program for custom character in lcd
Fork of mbed_lcd_custom by
Revision 2:92cbf103315b, committed 2014-07-10
- Comitter:
- mderrant
- Date:
- Thu Jul 10 15:46:11 2014 +0000
- Parent:
- 1:e6f698c0d7af
- Child:
- 3:afd06ac5821b
- Commit message:
- VERSION PARA K64F
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jul 03 21:14:28 2014 +0000 +++ b/main.cpp Thu Jul 10 15:46:11 2014 +0000 @@ -1,7 +1,7 @@ #include "mbed.h" #include "TextLCD.h" -TextLCD lcd(p15, p16, p17, p18, p19, p20, TextLCD::LCD16x2); +TextLCD lcd(PTA0, PTC4, PTB23, PTA2, PTC2, PTC3, TextLCD::LCD16x2); // PARA PLACA K64F int cur = 0; int mov = 1; @@ -21,7 +21,7 @@ { lcd.clear(); lcd.setCursor(cur,0); - lcd.printf("BELLO"); + lcd.printf("HOLA"); lcd.setCursor(0,1); lcd.putc(0); lcd.setCursor(4,1); @@ -32,8 +32,8 @@ wait(1); lcd.clear(); - lcd.setCursor(cur,0); - lcd.printf("BELLO"); + lcd.setCursor(cur,1); + lcd.printf("ADIOS"); lcd.setCursor(0,1); lcd.putc(7); lcd.setCursor(4,1);