A simple example demonstrating use of the mbed-read.vi component

Dependencies:   mbed

main.cpp

Committer:
simon
Date:
2010-07-29
Revision:
0:f7582ef705bb
Child:
1:41cd9c66fd46

File content as of revision 0:f7582ef705bb:

#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);
    }
}