Contador de pasos

Dependencies:   MMA8451Q mbed

main.cpp

Committer:
OlySolano
Date:
2016-02-10
Revision:
0:df404584fbad
Child:
1:aa7e037498b3
Child:
3:590e99aa338f

File content as of revision 0:df404584fbad:

#include "mbed.h"
#include "MMA8451Q.h"


DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}