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:68cbdfc24b73
- Parent:
- 2:e5491a9a63e7
- Child:
- 4:47c8578603d3
--- a/main.cpp Fri Oct 29 00:22:12 2021 +0000
+++ b/main.cpp Fri Oct 29 00:29:33 2021 +0000
@@ -9,32 +9,12 @@
// Déclaration des broches
-Serial pc(USBTX, USBRX); // Dialogue UART par USB à 9600 Baud sur carte Nucléo
-
DigitalOut DEL_VE(LED1); // Ligne PB_3 sur la carte Nucléo
//==============================================================================
-// Déclaration des variables
-
-int variable;
-
-//==============================================================================
-// Déclaration des Fonctions
-void Ma_Fonction(void)
-{
- variable = 0;
-}
-
-//==============================================================================
// Début du Programme
int main()
-{
-
-// Hello World
- pc.printf("\r\nFabLab Nimes : TP 01\r\n\n");
-
-// Test de l'horloge Systeme
- pc.printf("Horloge CPU a %d Hz\r\n", SystemCoreClock);
+{
//==============================================================================
// Boucle Infinie
@@ -45,7 +25,7 @@
DEL_VE = 0;
wait_ms(900);
+ } // Fin du while(1)
//==============================================================================
- } // Fin du while(1)
} // Fin du Programme
//==============================================================================
\ No newline at end of file