LCD 2x16 example

Dependencies:   TextLCD mbed

Fork of k64f-lcd by Hernán Maya

main.cpp

Committer:
juanitoinig84
Date:
2016-06-02
Revision:
1:2769c0bc7b9f
Parent:
0:ee189687f32d
Child:
2:0bca2a7bc648

File content as of revision 1:2769c0bc7b9f:

#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()
{ 
    lcd.cls();
    lcd.locate(0,0);
    lcd.printf("Hello World!\n");
    lcd.locate(0,1);
    lcd.printf("EasyBOD\n");
    while(1);
}