tim010 tim010
/
LV5_PAI_Grupa6_Tim010_Zadatak3
Armin Klačar, Emina Šarić
main.cpp
- Committer:
- tim010
- Date:
- 2014-04-03
- Revision:
- 0:c858fcbd0f70
File content as of revision 0:c858fcbd0f70:
#include "mbed.h" AnalogIn x(dp9); PwmOut y(dp24); BusOut ledice(dp23, dp25, dp26, dp27, dp5, dp6, dp28); DigitalOut enable(dp14); int main() { enable=0; ledice=0; wait_ms(50); y.period_us(50); float x1(0.8/3.3); float z(x); while(1) { if(x<x1) z=0; else z=x; y = z; } }