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 BSP_DISCO_F746NG
main.cpp@0:abdc9ad40139, 2019-08-12 (annotated)
- Committer:
- ngtkien
- Date:
- Mon Aug 12 16:08:43 2019 +0000
- Revision:
- 0:abdc9ad40139
- Child:
- 1:c57c528f99f1
RadarClone;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ngtkien | 0:abdc9ad40139 | 1 | #include "mbed.h" |
ngtkien | 0:abdc9ad40139 | 2 | |
ngtkien | 0:abdc9ad40139 | 3 | DigitalOut myled(LED1); |
ngtkien | 0:abdc9ad40139 | 4 | |
ngtkien | 0:abdc9ad40139 | 5 | int main() { |
ngtkien | 0:abdc9ad40139 | 6 | while(1) { |
ngtkien | 0:abdc9ad40139 | 7 | myled = 1; // LED is ON |
ngtkien | 0:abdc9ad40139 | 8 | wait(0.2); // 200 ms |
ngtkien | 0:abdc9ad40139 | 9 | myled = 0; // LED is OFF |
ngtkien | 0:abdc9ad40139 | 10 | wait(1.0); // 1 sec |
ngtkien | 0:abdc9ad40139 | 11 | } |
ngtkien | 0:abdc9ad40139 | 12 | } |