Jovana Trajkovic
/
19E042PIM_T1_2019_0408
2019/0408 Jovana Trajkovic
main.cpp@0:f52720c66789, 2021-11-06 (annotated)
- Committer:
- jovanat
- Date:
- Sat Nov 06 08:15:17 2021 +0000
- Revision:
- 0:f52720c66789
- Child:
- 1:5d929bc24718
2019/0408 Jovana Trajkovic
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jovanat | 0:f52720c66789 | 1 | // Libraries |
jovanat | 0:f52720c66789 | 2 | |
jovanat | 0:f52720c66789 | 3 | #include <mbed> |
jovanat | 0:f52720c66789 | 4 | |
jovanat | 0:f52720c66789 | 5 | // Directives |
jovanat | 0:f52720c66789 | 6 | #define LED_ON 0 |
jovanat | 0:f52720c66789 | 7 | |
jovanat | 0:f52720c66789 | 8 | // Variables |
jovanat | 0:f52720c66789 | 9 | DigitalIn green_led(LED1); |
jovanat | 0:f52720c66789 | 10 | DigitalOut green_led(LED1); |
jovanat | 0:f52720c66789 | 11 | |
jovanat | 0:f52720c66789 | 12 | // User functions |
jovanat | 0:f52720c66789 | 13 | |
jovanat | 0:f52720c66789 | 14 | int main (){ |
jovanat | 0:f52720c66789 | 15 | SEL2.write(LED_ON); |
jovanat | 0:f52720c66789 | 16 | a.write(LED_ON); |
jovanat | 0:f52720c66789 | 17 | b.write(LED_ON); |
jovanat | 0:f52720c66789 | 18 | c.write(LED_ON); |
jovanat | 0:f52720c66789 | 19 | d.write(LED_ON); |
jovanat | 0:f52720c66789 | 20 | e.write(LED_ON); |
jovanat | 0:f52720c66789 | 21 | f.write(LED_ON); |
jovanat | 0:f52720c66789 | 22 | |
jovanat | 0:f52720c66789 | 23 | SEL2.write(LED_ON); |
jovanat | 0:f52720c66789 | 24 | a.write(LED_ON); |
jovanat | 0:f52720c66789 | 25 | b.write(LED_ON); |
jovanat | 0:f52720c66789 | 26 | c.write(LED_ON); |
jovanat | 0:f52720c66789 | 27 | d.write(LED_ON); |
jovanat | 0:f52720c66789 | 28 | e.write(LED_ON); |
jovanat | 0:f52720c66789 | 29 | f.write(LED_ON); |
jovanat | 0:f52720c66789 | 30 | wait(3); |
jovanat | 0:f52720c66789 | 31 | b.write(LED_ON); |
jovanat | 0:f52720c66789 | 32 | c.write(LED_ON); |
jovanat | 0:f52720c66789 | 33 | wait(3); |
jovanat | 0:f52720c66789 | 34 | a.write(LED_ON); |
jovanat | 0:f52720c66789 | 35 | b.write(LED_ON); |
jovanat | 0:f52720c66789 | 36 | g.write(LED_ON); |
jovanat | 0:f52720c66789 | 37 | d.write(LED_ON); |
jovanat | 0:f52720c66789 | 38 | e.write(LED_ON); |
jovanat | 0:f52720c66789 | 39 | wait(3); |
jovanat | 0:f52720c66789 | 40 | a.write(LED_ON); |
jovanat | 0:f52720c66789 | 41 | b.write(LED_ON); |
jovanat | 0:f52720c66789 | 42 | g.write(LED_ON); |
jovanat | 0:f52720c66789 | 43 | d.write(LED_ON); |
jovanat | 0:f52720c66789 | 44 | c.write(LED_ON); |
jovanat | 0:f52720c66789 | 45 | wait(3); |
jovanat | 0:f52720c66789 | 46 | f.write(LED_ON); |
jovanat | 0:f52720c66789 | 47 | b.write(LED_ON); |
jovanat | 0:f52720c66789 | 48 | g.write(LED_ON); |
jovanat | 0:f52720c66789 | 49 | c.write(LED_ON); |
jovanat | 0:f52720c66789 | 50 | wait(3); |
jovanat | 0:f52720c66789 | 51 | f.write(LED_ON); |
jovanat | 0:f52720c66789 | 52 | a.write(LED_ON); |
jovanat | 0:f52720c66789 | 53 | g.write(LED_ON); |
jovanat | 0:f52720c66789 | 54 | c.write(LED_ON); |
jovanat | 0:f52720c66789 | 55 | d.write(LED_ON); |
jovanat | 0:f52720c66789 | 56 | wait(3); |
jovanat | 0:f52720c66789 | 57 | f.write(LED_ON); |
jovanat | 0:f52720c66789 | 58 | e.write(LED_ON); |
jovanat | 0:f52720c66789 | 59 | g.write(LED_ON); |
jovanat | 0:f52720c66789 | 60 | c.write(LED_ON); |
jovanat | 0:f52720c66789 | 61 | d.write(LED_ON); |
jovanat | 0:f52720c66789 | 62 | wait(3); |
jovanat | 0:f52720c66789 | 63 | a.write(LED_ON); |
jovanat | 0:f52720c66789 | 64 | b.write(LED_ON); |
jovanat | 0:f52720c66789 | 65 | c.write(LED_ON); |
jovanat | 0:f52720c66789 | 66 | wait(3); |
jovanat | 0:f52720c66789 | 67 | f.write(LED_ON); |
jovanat | 0:f52720c66789 | 68 | e.write(LED_ON); |
jovanat | 0:f52720c66789 | 69 | a.write(LED_ON); |
jovanat | 0:f52720c66789 | 70 | c.write(LED_ON); |
jovanat | 0:f52720c66789 | 71 | d.write(LED_ON); |
jovanat | 0:f52720c66789 | 72 | |
jovanat | 0:f52720c66789 | 73 | |
jovanat | 0:f52720c66789 | 74 | |
jovanat | 0:f52720c66789 | 75 |