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.
Diff: main.cpp
- Revision:
- 18:f38c6e50ff1d
- Parent:
- 16:9ea7bff0ed03
--- a/main.cpp Thu Feb 10 17:47:11 2022 +0000 +++ b/main.cpp Thu Mar 03 18:02:05 2022 +0000 @@ -1,8 +1,8 @@ // SAE1-S2 programme de départ testant uniquement la carte micro #include "mbed.h" // -//****************** déclarations des broches **************** -Serial pc(SERIAL_TX, SERIAL_RX); // PORT SERIE SUR usb !! +//****************** déclarations de toutes les broches !!*************** +Serial pc(SERIAL_TX, SERIAL_RX); // PORT SERIE vers driver usb !! AnalogIn inVs(A0) ; // entrée ana pour mesurer le Vs de la carte capteur AnalogOut outVr(A4); // sortie ana pour la calibration du capteur AnalogIn P1(A1) ; AnalogIn P0(A3) ; // entrée ana pour le code du capteur @@ -25,15 +25,15 @@ #include "etape0.h" #include "etape1.h" -void interrupt(); // obligatoire ici : il est lié à la liaison série +void interrupt(); // obligatoire ici : pour la reception de liaison serie int main() // boucle principale { - init(); + init(); // prépare certianes fonctions au debut - while(1) + while(1)// boucle sans fin du programme { - if ( etape == 0 ) etape0() ; + if ( etape == 0 ) etape0() ; // au debut etape = 0 if ( etape == 1 ) etape1() ; } }