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

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Mon Aug 02 10:08:52 2010 +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 6e5663cffec2 main.cpp
--- /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;
+    }
+}
diff -r 000000000000 -r 6e5663cffec2 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Aug 02 10:08:52 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da