Simon Ford
/
LabVIEW_HelloWorld
A simple example demonstrating use of the mbed-read.vi component
Revision 0:f7582ef705bb, committed 2010-07-29
- Comitter:
- simon
- Date:
- Thu Jul 29 22:26:32 2010 +0000
- Child:
- 1:41cd9c66fd46
- 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 Thu Jul 29 22:26:32 2010 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +AnalogIn x(p20); +AnalogIn y(p19); + +int main() { + while (1) { + printf("%f, %f, hello world, %f\n", x.read(), y.read(), i); + myled = 1; + wait(0.01); + myled = 0; + wait(0.03); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jul 29 22:26:32 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da