Simon Ford
/
LabVIEW_write_HelloWorld
A simple example for allowing LabVIEW to control the brightness of mbed LEDs
Diff: main.cpp
- Revision:
- 0:6e5663cffec2
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; + } +}