Juan Carlos Suárez Barón / Mbed 2 deprecated k64f-lcd

Dependencies:   TextLCD mbed

Fork of k64f-lcd by Hernán Maya

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "TextLCD.h"
00003 
00004 //TextLCD lcd(PTC3, PTC2, PTA2, PTB23, PTA1, PTB9);// rs, e, d4-d7 
00005                                                 //4,6,(11,12,13,14)
00006 
00007  //  LCD (RS, E, D4, D5, D6, D7)
00008     TextLCD lcd(PTE24, PTE25, PTC3, PTC2, PTA2, PTB23); //4, 6, 11, 12, 13, 14
00009 
00010 int main()
00011 { 
00012     wait(0.001);
00013     lcd.cls();
00014     lcd.locate(0,0);
00015     lcd.printf("Hello World!\n");
00016     wait(0.1);
00017     lcd.locate(0,1);
00018     lcd.printf("EasyBOD\n");
00019     
00020     int iCounter = 0;
00021     while(1)
00022     {
00023         lcd.locate(8,1);
00024         lcd.printf("%d",iCounter);
00025         iCounter++;
00026         wait(1.0);
00027     }
00028 }