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: codeurs.cpp
- Revision:
- 1:2fe8c402ee79
- Parent:
- 0:dc036b67c87c
- Child:
- 2:094c09903a9c
--- a/codeurs.cpp Wed Jul 08 19:51:28 2020 +0000
+++ b/codeurs.cpp Wed Jul 08 20:42:19 2020 +0000
@@ -1,6 +1,11 @@
+// Nom du fichier : codeurs.cpp
#include "pins.h"
-// Rise
+// Variables globales
+long cpt_cdgA=0; // Codeur de gauche
+long cpt_cdgB=0;
+long cpt_cddA=0; // Codeur de droite
+long cpt_cddB=0;
void cdgaRise(){
if(cdgB) cpt_cdgA++;
@@ -18,22 +23,4 @@
void cddbRise(){
-}
-
-// Fall
-
-void cdgaall(){
-
-}
-
-void cdgball(){
-
-}
-
-void cddaall(){
-
-}
-
-void cddball(){
-
}
\ No newline at end of file