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@26:81e3690a09ee, 2020-09-02 (annotated)
- Committer:
- cauvinf
- Date:
- Wed Sep 02 15:15:01 2020 +0000
- Revision:
- 26:81e3690a09ee
- Parent:
- 25:df8141dc98b3
- Child:
- 27:994c549bf33e
version 2 - command led grove sur D3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cauvinf | 25:df8141dc98b3 | 1 | #include "mbed.h" // Ajout de la librairie "mbed.h" |
dan | 0:7dec7e9ac085 | 2 | |
cauvinf | 26:81e3690a09ee | 3 | DigitalOut myled(D3); // Définie la sortie nommé LED1 |
dan | 0:7dec7e9ac085 | 4 | |
dan | 0:7dec7e9ac085 | 5 | int main() { |
dan | 0:7dec7e9ac085 | 6 | while(1) { |
dan | 0:7dec7e9ac085 | 7 | myled = 1; |
cauvinf | 26:81e3690a09ee | 8 | wait(0.5); |
dan | 0:7dec7e9ac085 | 9 | myled = 0; |
cauvinf | 26:81e3690a09ee | 10 | wait(1.5); |
stevep | 4:81cea7a352b0 | 11 | } |
dan | 0:7dec7e9ac085 | 12 | } |