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.
main.cpp@1:faed0ed0b9a1, 2019-05-10 (annotated)
- Committer:
- SoulaimanZABOURDINE
- Date:
- Fri May 10 12:13:00 2019 +0000
- Revision:
- 1:faed0ed0b9a1
- Parent:
- 0:81a56990c0f8
azblink test;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
SoulaimanZABOURDINE | 0:81a56990c0f8 | 1 | #include "mbed.h" |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 2 | |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 3 | DigitalOut myled(LED1); |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 4 | |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 5 | int main() { |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 6 | while(1) { |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 7 | myled = 1; // LED is ON |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 8 | wait(1.2); // 200 ms |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 9 | myled = 0; // LED is OFF |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 10 | wait(1.0); // 1 sec |
SoulaimanZABOURDINE | 0:81a56990c0f8 | 11 | } |
SoulaimanZABOURDINE | 1:faed0ed0b9a1 | 12 | } |