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:
- 3:60f0094d0989
- Parent:
- 2:005bc21c68d6
diff -r 005bc21c68d6 -r 60f0094d0989 main.cpp
--- a/main.cpp Thu Nov 18 19:13:06 2021 +0000
+++ b/main.cpp Sat Jan 22 09:15:04 2022 +0000
@@ -16,19 +16,26 @@
DigitalOut DEL_RO(PA_11); // Ligne PA_11 sur la carte Nucléo
DigitalOut DEL_OR(PB_5); // Ligne PB_5 sur la carte Nucléo
DigitalOut DEL_VE(PB_4); // Ligne PB_4 sur la carte Nucléo
+DigitalIn BP(PB_3);
//==============================================================================
// Début du Programme
int main() // Fonction principale
{
-
+ BP.mode(PullUp);
//==============================================================================
while(1) // Boucle Infinie
{
- DEL_VE = 1; // Broche à 1 (DEL allumée)
- wait_ms(100); // Temporisation de 100ms (0.1s)
- DEL_VE = 0; // Broche à 0 (DEL éteinte)
- wait_ms(900);
+ DEL_VE = 1;
+ DEL_RO = 0; // Broche à 1 (DEL allumée)
+ wait_ms(5000); // Temporisation de 100ms (0.1s)
+ DEL_VE = 0;
+ DEL_OR = 1; // Broche à 0 (DEL éteinte)
+ wait_ms(1000);
+ DEL_OR = 0;
+ DEL_RO = 1;
+ wait_ms(5000);
+
} // Fin du while(1)
//==============================================================================