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@25:fcc097300033, 2020-09-02 (annotated)
- Committer:
- pelissier_rascol
- Date:
- Wed Sep 02 15:02:54 2020 +0000
- Revision:
- 25:fcc097300033
- Parent:
- 24:7f14b70fc9ef
- Child:
- 26:c75cce78a6a5
" version 2 - commande led grove sur D3 "
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pelissier_rascol | 25:fcc097300033 | 1 | #include "mbed.h" // c'est la bibliothèque |
dan | 0:7dec7e9ac085 | 2 | |
pelissier_rascol | 25:fcc097300033 | 3 | DigitalOut myled(D3); |
dan | 0:7dec7e9ac085 | 4 | |
dan | 0:7dec7e9ac085 | 5 | int main() { |
pelissier_rascol | 25:fcc097300033 | 6 | while(1) { // c'est la boucle |
pelissier_rascol | 25:fcc097300033 | 7 | myled = 1; // my led = 1 |
pelissier_rascol | 25:fcc097300033 | 8 | wait(0.5); // c'est la temporisation = 0.5 |
pelissier_rascol | 25:fcc097300033 | 9 | myled = 0; // my led= 0 |
pelissier_rascol | 25:fcc097300033 | 10 | wait(1.5); // c'est la temporisation = 1.5 |
stevep | 4:81cea7a352b0 | 11 | } |
dan | 0:7dec7e9ac085 | 12 | } |