![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Nucleo_Example_Demo.
main.cpp@1:6554c60faa06, 2017-07-06 (annotated)
- Committer:
- bcostm
- Date:
- Thu Jul 06 08:24:43 2017 +0000
- Revision:
- 1:6554c60faa06
- Parent:
- 0:d5bd863b2036
- Child:
- 3:a7b520fad123
Typos
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 0:d5bd863b2036 | 1 | #include "mbed.h" |
bcostm | 0:d5bd863b2036 | 2 | |
bcostm | 1:6554c60faa06 | 3 | DigitalOut led(LED1); |
bcostm | 0:d5bd863b2036 | 4 | |
bcostm | 0:d5bd863b2036 | 5 | int main() |
bcostm | 0:d5bd863b2036 | 6 | { |
bcostm | 0:d5bd863b2036 | 7 | while(1) { |
bcostm | 1:6554c60faa06 | 8 | led = 1; // LED is ON |
bcostm | 0:d5bd863b2036 | 9 | wait(0.2); // 200 ms |
bcostm | 1:6554c60faa06 | 10 | led = 0; // LED is OFF |
bcostm | 0:d5bd863b2036 | 11 | wait(0.8); // 800 ms |
bcostm | 0:d5bd863b2036 | 12 | } |
bcostm | 0:d5bd863b2036 | 13 | } |