A simple program that controls the LED1 brightness by using potentiometer.

Dependencies:   mbed

Revision:
0:80eb27fb5770
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Dec 18 12:30:47 2014 +0000
@@ -0,0 +1,10 @@
+#include "mbed.h"
+
+PwmOut led1(LED1);
+AnalogIn pot2(p20);
+
+int main() {
+    while(1) {
+        led1 = pot2;
+    }
+}
\ No newline at end of file