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.
codeurs.cpp
- Committer:
- Nanaud
- Date:
- 2020-07-09
- Revision:
- 2:094c09903a9c
- Parent:
- 1:2fe8c402ee79
- Child:
- 5:34ed652f8c31
File content as of revision 2:094c09903a9c:
// Nom du fichier : codeurs.cpp
#include "pins.h"
// 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++;
else cpt_cdgA--;
}
/*
void cdgbRise(){
if(cdgA) cpt_cdgB--;
else cpt_cdgB++;
}
*/
void cddaRise(){
}
/*
void cddbRise(){
}
*/