Øving 4.2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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
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
diff -r 000000000000 -r d13ae82bbadc mbed.bld
--- /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