Contador de pasos

Dependencies:   MMA8451Q mbed

Committer:
gilbertogn
Date:
Wed Feb 10 18:58:22 2016 +0000
Revision:
3:590e99aa338f
Parent:
0:df404584fbad
Child:
4:ad1854e9d739
:)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
OlySolano 0:df404584fbad 1 #include "mbed.h"
OlySolano 0:df404584fbad 2 #include "MMA8451Q.h"
OlySolano 0:df404584fbad 3
OlySolano 0:df404584fbad 4
OlySolano 0:df404584fbad 5 DigitalOut myled(LED1);
OlySolano 0:df404584fbad 6
OlySolano 0:df404584fbad 7 int main() {
OlySolano 0:df404584fbad 8 while(1) {
OlySolano 0:df404584fbad 9 myled = 1;
OlySolano 0:df404584fbad 10 wait(0.2);
OlySolano 0:df404584fbad 11 myled = 0;
OlySolano 0:df404584fbad 12 wait(0.2);
OlySolano 0:df404584fbad 13 }
OlySolano 0:df404584fbad 14 }
gilbertogn 3:590e99aa338f 15 bjhnm