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
--- /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;
+    }
+}
--- /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