Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
el16ecb
Date:
Mon Mar 06 15:21:07 2017 +0000
Commit message:

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 40e397eded18 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 06 15:21:07 2017 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+PwmOut red_led (p24);
+PwmOut green_led (p23);
+PwmOut blue_led (p22);
+AnalogIn red_pot (p20);
+AnalogIn green_pot (p19);
+AnalogIn blue_pot (p17);
+
+int main() {
+    while(1) {
+        red_led = 1.0 - red_pot;
+        green_led = 1.0 - green_pot;
+        blue_led = 1.0 - blue_pot;
+    }
+}
diff -r 000000000000 -r 40e397eded18 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 06 15:21:07 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e1686b8d5b90
\ No newline at end of file