Jovana Trajkovic
/
20190408T2
2019/0408 Jovana Trajković
Diff: main.cpp
- Revision:
- 0:00be78fac165
diff -r 000000000000 -r 00be78fac165 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Nov 13 08:14:35 2021 +0000 @@ -0,0 +1,27 @@ +// Libraries +#include "mbed.h" + +// Directives +#define PERIOD 5ms + +// Main function +DigitalIn sw1(PC_9); +PwmOut zujalica(PA_11); +AnalogIn potentiometer(PA_0); + +// User functions + +// Telo glavnog programa - regulisanje frekvencije + +int main() +{ + + while(true) + { + zujalica = potentiometer; + } + + + +return 0; +} \ No newline at end of file