A simple example for allowing LabVIEW to control the brightness of mbed LEDs

Dependencies:   mbed

Revision:
0:6e5663cffec2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Aug 02 10:08:52 2010 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+PwmOut myled(LED1);
+PwmOut myled2(LED2);
+
+int main() {
+    while(1) {
+        float brightness, brightness2;
+        scanf("%f,%f", &brightness,&brightness2);
+        myled = brightness;
+        myled2 = brightness2;
+    }
+}