![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Øving_4_2
Dependencies: mbed
Revision 0:9b011f850451, committed 2017-09-19
- Comitter:
- olemh88
- Date:
- Tue Sep 19 13:14:11 2017 +0000
- Commit message:
- ?ving4_2
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Sep 19 13:14:11 2017 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +PwmOut led(LED1); +AnalogIn pot(p20); +int main() +{ + led.period(0.02); + while(1) { + led.write(pot); + wait (0.1); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Sep 19 13:14:11 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/675da3299148 \ No newline at end of file