![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
g
main.cpp@0:9812248c283a, 2019-10-02 (annotated)
- Committer:
- BenRJG
- Date:
- Wed Oct 02 19:25:03 2019 +0000
- Revision:
- 0:9812248c283a
df
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
BenRJG | 0:9812248c283a | 1 | #include "mbed.h" |
BenRJG | 0:9812248c283a | 2 | |
BenRJG | 0:9812248c283a | 3 | DigitalOut myled(LED1); |
BenRJG | 0:9812248c283a | 4 | |
BenRJG | 0:9812248c283a | 5 | int main() { |
BenRJG | 0:9812248c283a | 6 | while(1) { |
BenRJG | 0:9812248c283a | 7 | myled = 1; // LED is ON |
BenRJG | 0:9812248c283a | 8 | wait(0.2); // 200 ms |
BenRJG | 0:9812248c283a | 9 | myled = 0; // LED is OFF |
BenRJG | 0:9812248c283a | 10 | wait(1.0); // 1 sec |
BenRJG | 0:9812248c283a | 11 | } |
BenRJG | 0:9812248c283a | 12 | } |