![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Øving 4.2
Revision 0:d13ae82bbadc, committed 2017-09-20
- Comitter:
- Smashftw
- Date:
- Wed Sep 20 13:10:59 2017 +0000
- Commit message:
- ?ving 4.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 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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Sep 20 13:10:59 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/675da3299148 \ No newline at end of file