Dinko Djakovic, prikaz varijabli na LCD-u - brojac

Dependencies:   TextLCD mbed

main.cpp

Committer:
djdinko
Date:
2015-05-22
Revision:
1:951e51803b9f
Parent:
0:8e0c631004c5

File content as of revision 1:951e51803b9f:

#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_ms(500);
x++;
}
}