Applied engineering Team
/
Mikroupravljaci_vjezba_8_4
Dinko Djakovic, prikaz varijabli na LCD-u - brojac
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "TextLCD.h" 00003 //TextLCD lcd(p19, p20, p21, p22, p23, p24); // rs, e, d0, d1, d2, d3 00004 TextLCD lcd(p19, p20, p21, p22, p23, p24,TextLCD::LCD8x2); 00005 int x=0; 00006 int main() { 00007 lcd.printf("LCD Counter"); 00008 while (1) { 00009 lcd.locate(5,1); 00010 lcd.printf("%i",x); 00011 wait_ms(500); 00012 x++; 00013 } 00014 }
Generated on Tue Jul 12 2022 21:22:13 by 1.7.2