V8_4

Dependencies:   TextLCD mbed

main.cpp

Committer:
jnovosel
Date:
2016-11-24
Revision:
0:a5ad9b843e13

File content as of revision 0:a5ad9b843e13:

#include "mbed.h"
#include "TextLCD.h"
//TextLCD lcd(p19, p20, p21, p22, p23, p24); // rs, e, d0, d1, d2, d3
TextLCD lcd(p19, p20, p21, p22, p23, p24,TextLCD::LCD8x2);
int x=0;
int main()
{
    lcd.printf("LCD Counter");
    while (1) {
        lcd.locate(5,1);
        lcd.printf("%i",x);
        wait(1);
        x++;
    }
}