Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp@0:c8d6115c4aee, 2017-10-05 (annotated)
- Committer:
- goodguy8791
- Date:
- Thu Oct 05 18:46:44 2017 +0000
- Revision:
- 0:c8d6115c4aee
I does it
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
goodguy8791 | 0:c8d6115c4aee | 1 | #include "mbed.h" |
goodguy8791 | 0:c8d6115c4aee | 2 | |
goodguy8791 | 0:c8d6115c4aee | 3 | DigitalOut myled(LED1); |
goodguy8791 | 0:c8d6115c4aee | 4 | //AnalogIn mypot(p20); |
goodguy8791 | 0:c8d6115c4aee | 5 | DigitalOut Ctrl(p8); |
goodguy8791 | 0:c8d6115c4aee | 6 | // |
goodguy8791 | 0:c8d6115c4aee | 7 | int main() { |
goodguy8791 | 0:c8d6115c4aee | 8 | while(1) { |
goodguy8791 | 0:c8d6115c4aee | 9 | Ctrl = 1; |
goodguy8791 | 0:c8d6115c4aee | 10 | myled = 1; |
goodguy8791 | 0:c8d6115c4aee | 11 | wait(0.5); |
goodguy8791 | 0:c8d6115c4aee | 12 | Ctrl = 0; |
goodguy8791 | 0:c8d6115c4aee | 13 | myled = 0; |
goodguy8791 | 0:c8d6115c4aee | 14 | wait(2); |
goodguy8791 | 0:c8d6115c4aee | 15 | } |
goodguy8791 | 0:c8d6115c4aee | 16 | } |