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
Diff: main.cpp
- Revision:
- 26:16862c6477d5
- Parent:
- 25:7248bf24d36e
- Child:
- 27:317e04648a84
--- a/main.cpp Tue Sep 08 12:54:04 2020 +0000
+++ b/main.cpp Tue Sep 08 12:55:46 2020 +0000
@@ -1,12 +1,12 @@
#include "mbed.h" //inclue la bibliotheque mbed.h
-DigitalOut myled(LED1); // Defini la led 1 comme sortie et la renomme myled
+DigitalOut myled(PTA1); // Defini la led 1 comme sortie et la renomme myled
int main() { // int est le type renvoyé par la fonction mais dans le code de son execution
while(1) { // boucle tant que 1
myled = 1; //Allume la LED
- wait(0.2); //Attend 0.2 secondes
+ wait(0.5); //Attend 0.2 secondes
myled = 0; //Eteint la LED
- wait(0.2); //Attend 0.2 secondes
+ wait(1.5); //Attend 0.2 secondes
}
}