LCD Interfacing with FRDM KL25Z

Dependencies:   mbed TextLCD

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 //FVP for lcd. rs,en,d4-d7, type of lcd
00005 TextLCD lcd(PTA1, PTA2, PTD4, PTA12, PTA4, PTA5, TextLCD::LCD16x2); //rs, e, d4-d7
00006 
00007 int main()
00008 {
00009 
00010     while(1) {
00011         lcd.printf("Hello");
00012         wait(1);
00013         lcd.cls();  //clear lcd
00014 
00015     }
00016 }
00017