Applied engineering Team
/
beromunjadisplay
VT4_Matija_Berecek
main.cpp
- Committer:
- Beromunja
- Date:
- 2016-11-24
- Revision:
- 0:39fe5414ff8e
File content as of revision 0:39fe5414ff8e:
#include "mbed.h" #include "TextLCD.h" TextLCD lcd(p19, p20, p21, p22, p23, p24); //rs,e,d0, d1,d2,d3 AnalogIn Ain(p17); int percentage; int main() { while(1){ percentage=Ain*100; lcd.printf("%i",percentage); wait(0.2); lcd.cls(); } }