LCD Interfacing with FRDM KL25Z

Dependencies:   mbed TextLCD

main.cpp

Committer:
mrbhatter
Date:
2019-06-28
Revision:
0:a8a3de67b14b

File content as of revision 0:a8a3de67b14b:

#include "mbed.h"
#include "TextLCD.h"

//FVP for lcd. rs,en,d4-d7, type of lcd
TextLCD lcd(PTA1, PTA2, PTD4, PTA12, PTA4, PTA5, TextLCD::LCD16x2); //rs, e, d4-d7

int main()
{

    while(1) {
        lcd.printf("Hello");
        wait(1);
        lcd.cls();  //clear lcd

    }
}