Jovana Trajkovic
/
19E042PIM_T1_2019_0408
2019/0408 Jovana Trajkovic
Diff: main.cpp
- Revision:
- 0:f52720c66789
- Child:
- 1:5d929bc24718
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Nov 06 08:15:17 2021 +0000 @@ -0,0 +1,75 @@ +// Libraries + +#include <mbed> + +// Directives +#define LED_ON 0 + +// Variables +DigitalIn green_led(LED1); +DigitalOut green_led(LED1); + +// User functions + +int main (){ + SEL2.write(LED_ON); + a.write(LED_ON); + b.write(LED_ON); + c.write(LED_ON); + d.write(LED_ON); + e.write(LED_ON); + f.write(LED_ON); + + SEL2.write(LED_ON); + a.write(LED_ON); + b.write(LED_ON); + c.write(LED_ON); + d.write(LED_ON); + e.write(LED_ON); + f.write(LED_ON); + wait(3); + b.write(LED_ON); + c.write(LED_ON); + wait(3); + a.write(LED_ON); + b.write(LED_ON); + g.write(LED_ON); + d.write(LED_ON); + e.write(LED_ON); + wait(3); + a.write(LED_ON); + b.write(LED_ON); + g.write(LED_ON); + d.write(LED_ON); + c.write(LED_ON); + wait(3); + f.write(LED_ON); + b.write(LED_ON); + g.write(LED_ON); + c.write(LED_ON); + wait(3); + f.write(LED_ON); + a.write(LED_ON); + g.write(LED_ON); + c.write(LED_ON); + d.write(LED_ON); + wait(3); + f.write(LED_ON); + e.write(LED_ON); + g.write(LED_ON); + c.write(LED_ON); + d.write(LED_ON); + wait(3); + a.write(LED_ON); + b.write(LED_ON); + c.write(LED_ON); + wait(3); + f.write(LED_ON); + e.write(LED_ON); + a.write(LED_ON); + c.write(LED_ON); + d.write(LED_ON); + + + +