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:17420a732fe8, 2017-11-21 (annotated)
- Committer:
- JPP
- Date:
- Tue Nov 21 15:33:44 2017 +0000
- Revision:
- 1:17420a732fe8
- Parent:
- 0:1c2d9c93c045
- Child:
- 2:c0afe99e4314
Version 2 : ajout de LED2 dans mains.c; nouveau fichier const.h pour d?finir les constantes de temporisations.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| JPP | 0:1c2d9c93c045 | 1 | #include "mbed.h" |
| JPP | 1:17420a732fe8 | 2 | #include "const.h" |
| JPP | 0:1c2d9c93c045 | 3 | |
| JPP | 0:1c2d9c93c045 | 4 | DigitalOut myled(LED1); |
| JPP | 1:17420a732fe8 | 5 | DigitalOut myled1(LED2); |
| JPP | 0:1c2d9c93c045 | 6 | |
| JPP | 1:17420a732fe8 | 7 | int main() |
| JPP | 1:17420a732fe8 | 8 | { |
| JPP | 0:1c2d9c93c045 | 9 | while(1) { |
| JPP | 0:1c2d9c93c045 | 10 | myled = 1; |
| JPP | 1:17420a732fe8 | 11 | myled1 = 0; |
| JPP | 1:17420a732fe8 | 12 | wait(TEMPO1); |
| JPP | 0:1c2d9c93c045 | 13 | myled = 0; |
| JPP | 1:17420a732fe8 | 14 | myled = 1; |
| JPP | 1:17420a732fe8 | 15 | wait(TEMPO2); |
| JPP | 0:1c2d9c93c045 | 16 | } |
| JPP | 0:1c2d9c93c045 | 17 | } |