![](/media/cache/group/hepta-sat_training_black.png.50x50_q85.png)
rev_20211121
Dependencies: HEPTA_SENSOR mbed HEPTA_EPS HEPTA_COM HEPTA_CDH
Diff: main.cpp
- Revision:
- 6:a7d481b9d962
- Parent:
- 5:c5ccb1b07e8f
- Child:
- 7:fab080b8be64
diff -r c5ccb1b07e8f -r a7d481b9d962 main.cpp --- a/main.cpp Fri Sep 01 22:50:55 2017 +0000 +++ b/main.cpp Mon Sep 04 03:51:41 2017 +0000 @@ -14,28 +14,12 @@ HeptaTemp heptatemp(p17); HeptaBattery bat(p16,p26); -DigitalOut myled1(LED1); -DigitalOut myled2(LED1); -DigitalOut myled3(LED1); -DigitalOut myled4(LED1); +DigitalOut myled(LED1); int main() { - //Lighting up - myled1 = 1; - wait(0.5); - myled2 = 1; - wait(0.5); - myled3 = 1; - wait(0.5); - myled4 = 1; + myled = 1; wait(0.5); - //Lighting off - myled1 = 0; - wait(0.5); - myled2 = 0; + myled = 0; wait(0.5); - myled3 = 0; - wait(0.5); - myled4 = 0; } \ No newline at end of file