Masahiko Yamazaki
/
Lab1-00_blinkyled_lite
Lab1-00_blinkyled_lite
main.cpp@0:82546e9f9d41, 2021-08-10 (annotated)
- Committer:
- heptasat2021
- Date:
- Tue Aug 10 01:42:37 2021 +0000
- Revision:
- 0:82546e9f9d41
for heptasat lite
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
heptasat2021 | 0:82546e9f9d41 | 1 | #include "mbed.h" |
heptasat2021 | 0:82546e9f9d41 | 2 | DigitalOut myled(LED1); |
heptasat2021 | 0:82546e9f9d41 | 3 | int main() |
heptasat2021 | 0:82546e9f9d41 | 4 | { |
heptasat2021 | 0:82546e9f9d41 | 5 | while (true) { |
heptasat2021 | 0:82546e9f9d41 | 6 | myled = 1; |
heptasat2021 | 0:82546e9f9d41 | 7 | wait_ms(500); |
heptasat2021 | 0:82546e9f9d41 | 8 | myled = 0; |
heptasat2021 | 0:82546e9f9d41 | 9 | wait_ms(500); |
heptasat2021 | 0:82546e9f9d41 | 10 | } |
heptasat2021 | 0:82546e9f9d41 | 11 | } |