Applied engineering Team
/
Mikroupravljaci_vjezba_8_4
Dinko Djakovic, prikaz varijabli na LCD-u - brojac
Revision 0:8e0c631004c5, committed 2015-05-22
- Comitter:
- djdinko
- Date:
- Fri May 22 16:34:23 2015 +0000
- Child:
- 1:951e51803b9f
- Commit message:
- Vjezba 8-4
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Fri May 22 16:34:23 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/wim/code/TextLCD/#d3496c3ea301
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 22 16:34:23 2015 +0000 @@ -0,0 +1,14 @@ +#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(50); +x++; +} +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 22 16:34:23 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/dbbf35b96557 \ No newline at end of file