![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Øving 4.2
Diff: main.cpp
- Revision:
- 0:d13ae82bbadc
diff -r 000000000000 -r d13ae82bbadc main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Sep 20 13:10:59 2017 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +PwmOut myled(LED1); +AnalogIn potmeter(p20); +int main() +{ + myled.period(0.02); + while(1) { + myled.write(potmeter); + wait (0.1); + } +} + \ No newline at end of file