lcd

Dependencies:   mbed TextLCD

main.cpp

Committer:
jmanocs
Date:
2018-11-23
Revision:
3:976025ff1048
Parent:
2:ad0b044d0a10

File content as of revision 3:976025ff1048:

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

TextLCD lcd(p5, p6, p7, p8, p9, p10);//RS, RW, D4, D5, D6, D7

int main() {
    int a=0;
    lcd.printf("Hello World!\n");
    
    while(1)
    { 
        lcd.locate(0,1);       
        lcd.printf("%d",a);
        wait(1);
        a++;
    }        
}