Contador de pasos

Dependencies:   MMA8451Q mbed

main.cpp

Committer:
gilbertogn
Date:
2016-02-10
Revision:
4:ad1854e9d739
Parent:
3:590e99aa338f
Child:
5:e0df96542c9b

File content as of revision 4:ad1854e9d739:

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


DigitalOut myled(LED1);

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