Sam Grove
/
MMA845x_test
Test accelerometer
Revision 0:918a677c6b26, committed 2013-07-26
- Comitter:
- sam_grove
- Date:
- Fri Jul 26 21:43:57 2013 +0000
- Commit message:
- Work in progress...
Changed in this revision
diff -r 000000000000 -r 918a677c6b26 MMA845x.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MMA845x.lib Fri Jul 26 21:43:57 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/sam_grove/code/MMA845x/#9d1e3a344e4f
diff -r 000000000000 -r 918a677c6b26 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jul 26 21:43:57 2013 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#include "MMA845x.h" + +DigitalOut myled(LED1); + +int main() { + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}
diff -r 000000000000 -r 918a677c6b26 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Jul 26 21:43:57 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/5e5da4a5990b \ No newline at end of file