maaike laagland
/
HC1b
jj
main.cpp@2:c7267df63e0e, 2018-02-03 (annotated)
- Committer:
- maaikelaagland
- Date:
- Sat Feb 03 13:04:54 2018 +0000
- Revision:
- 2:c7267df63e0e
- Parent:
- 0:ccd0c94dbe45
jaaaaa
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 | 2:c7267df63e0e | 17 | |
maaikelaagland | 2:c7267df63e0e | 18 | |
maaikelaagland | 2:c7267df63e0e | 19 | hhh |
maaikelaagland | 0:ccd0c94dbe45 | 20 | fsa |
maaikelaagland | 0:ccd0c94dbe45 | 21 | df |
maaikelaagland | 0:ccd0c94dbe45 | 22 | asd |
maaikelaagland | 0:ccd0c94dbe45 | 23 | f |