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 Motor_Driver Sensors MMA8451Q LocalPositionSystem
Fork of TDP_main by
main.cpp@0:5ca0450111f3, 2015-02-13 (annotated)
- Committer:
- Reckstyle
- Date:
- Fri Feb 13 15:18:43 2015 +0000
- Revision:
- 0:5ca0450111f3
- Child:
- 1:eace997e9a93
First save;
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| Reckstyle | 0:5ca0450111f3 | 1 | #include "mbed.h" | 
| Reckstyle | 0:5ca0450111f3 | 2 | #include "sensor_measure.h" | 
| Reckstyle | 0:5ca0450111f3 | 3 | |
| Reckstyle | 0:5ca0450111f3 | 4 | |
| Reckstyle | 0:5ca0450111f3 | 5 | DigitalOut myled(LED1); | 
| Reckstyle | 0:5ca0450111f3 | 6 | |
| Reckstyle | 0:5ca0450111f3 | 7 | int main() { | 
| Reckstyle | 0:5ca0450111f3 | 8 | |
| Reckstyle | 0:5ca0450111f3 | 9 | wait(1); //give time to set up the system | 
| Reckstyle | 0:5ca0450111f3 | 10 | |
| Reckstyle | 0:5ca0450111f3 | 11 | while(1) { | 
| Reckstyle | 0:5ca0450111f3 | 12 | myled = 1; | 
| Reckstyle | 0:5ca0450111f3 | 13 | wait(0.2); | 
| Reckstyle | 0:5ca0450111f3 | 14 | myled = 0; | 
| Reckstyle | 0:5ca0450111f3 | 15 | wait(0.2); | 
| Reckstyle | 0:5ca0450111f3 | 16 | } | 
| Reckstyle | 0:5ca0450111f3 | 17 | } | 

