Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed LSM9DS1_Library
main.cpp@0:0a3c6797d2ed, 2017-02-09 (annotated)
- Committer:
- jcallahan1
- Date:
- Thu Feb 09 20:13:13 2017 +0000
- Revision:
- 0:0a3c6797d2ed
IMU CPP file
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| jcallahan1 | 0:0a3c6797d2ed | 1 | #include "mbed.h" |
| jcallahan1 | 0:0a3c6797d2ed | 2 | |
| jcallahan1 | 0:0a3c6797d2ed | 3 | DigitalOut myled(LED1); |
| jcallahan1 | 0:0a3c6797d2ed | 4 | |
| jcallahan1 | 0:0a3c6797d2ed | 5 | int main() { |
| jcallahan1 | 0:0a3c6797d2ed | 6 | while(1) { |
| jcallahan1 | 0:0a3c6797d2ed | 7 | myled = 1; |
| jcallahan1 | 0:0a3c6797d2ed | 8 | wait(0.2); |
| jcallahan1 | 0:0a3c6797d2ed | 9 | myled = 0; |
| jcallahan1 | 0:0a3c6797d2ed | 10 | wait(0.2); |
| jcallahan1 | 0:0a3c6797d2ed | 11 | } |
| jcallahan1 | 0:0a3c6797d2ed | 12 | } |