Brightness controlled by a potmeter. this is a test program which uses the biorobotics shield

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Jankoekenpan
Date:
Mon Sep 26 09:53:04 2016 +0000
Commit message:
led brigthness controlled by the pot meter

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 e20f587cb263 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Sep 26 09:53:04 2016 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+PwmOut led(D3);
+AnalogIn pot(A1);
+
+int main()
+{
+    while (true) {
+        led = pot;
+        wait(0.1f);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r e20f587cb263 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Sep 26 09:53:04 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/abea610beb85
\ No newline at end of file