Øving_4_2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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
diff -r 000000000000 -r 9b011f850451 main.cpp
--- /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);
+    }
+}
diff -r 000000000000 -r 9b011f850451 mbed.bld
--- /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