maaike laagland
/
HC1b
jj
main.cpp@0:ccd0c94dbe45, 2018-02-03 (annotated)
- Committer:
- maaikelaagland
- Date:
- Sat Feb 03 13:02:36 2018 +0000
- Revision:
- 0:ccd0c94dbe45
- Child:
- 1:b64f61d65af9
- Child:
- 2:c7267df63e0e
gek
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
maaikelaagland | 0:ccd0c94dbe45 | 1 | #include "mbed.h" |
maaikelaagland | 0:ccd0c94dbe45 | 2 | |
maaikelaagland | 0:ccd0c94dbe45 | 3 | DigitalOut led(LED_RED); |
maaikelaagland | 0:ccd0c94dbe45 | 4 | DigitalIn button(PTA4); |
maaikelaagland | 0:ccd0c94dbe45 | 5 | |
maaikelaagland | 0:ccd0c94dbe45 | 6 | int main() |
maaikelaagland | 0:ccd0c94dbe45 | 7 | { |
maaikelaagland | 0:ccd0c94dbe45 | 8 | while (true) { |
maaikelaagland | 0:ccd0c94dbe45 | 9 | led = 1; // toggle led |
maaikelaagland | 0:ccd0c94dbe45 | 10 | wait(0.2f); |
maaikelaagland | 0:ccd0c94dbe45 | 11 | led = 0; |
maaikelaagland | 0:ccd0c94dbe45 | 12 | wait(1.0f); |
maaikelaagland | 0:ccd0c94dbe45 | 13 | } |
maaikelaagland | 0:ccd0c94dbe45 | 14 | } |
maaikelaagland | 0:ccd0c94dbe45 | 15 | asd |
maaikelaagland | 0:ccd0c94dbe45 | 16 | fads |
maaikelaagland | 0:ccd0c94dbe45 | 17 | fsa |
maaikelaagland | 0:ccd0c94dbe45 | 18 | df |
maaikelaagland | 0:ccd0c94dbe45 | 19 | asd |
maaikelaagland | 0:ccd0c94dbe45 | 20 | f |