
Lol smth
Dependencies: LocalPositionSystem MMA8451Q Motor_Driver Sensors mbed
Fork of TDP_main_BartFork 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 | } |