![](/media/cache/profiles/79f56e5e3e0e999b3c139f225838d41f.50x50_q85.jpg)
Test accelerometer
main.cpp@0:918a677c6b26, 2013-07-26 (annotated)
- Committer:
- sam_grove
- Date:
- Fri Jul 26 21:43:57 2013 +0000
- Revision:
- 0:918a677c6b26
Work in progress...
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sam_grove | 0:918a677c6b26 | 1 | #include "mbed.h" |
sam_grove | 0:918a677c6b26 | 2 | #include "MMA845x.h" |
sam_grove | 0:918a677c6b26 | 3 | |
sam_grove | 0:918a677c6b26 | 4 | DigitalOut myled(LED1); |
sam_grove | 0:918a677c6b26 | 5 | |
sam_grove | 0:918a677c6b26 | 6 | int main() { |
sam_grove | 0:918a677c6b26 | 7 | while(1) { |
sam_grove | 0:918a677c6b26 | 8 | myled = 1; |
sam_grove | 0:918a677c6b26 | 9 | wait(0.2); |
sam_grove | 0:918a677c6b26 | 10 | myled = 0; |
sam_grove | 0:918a677c6b26 | 11 | wait(0.2); |
sam_grove | 0:918a677c6b26 | 12 | } |
sam_grove | 0:918a677c6b26 | 13 | } |