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@5:34ed652f8c31, 2020-07-21 (annotated)
- Committer:
- Nanaud
- Date:
- Tue Jul 21 19:33:38 2020 +0000
- Revision:
- 5:34ed652f8c31
- Parent:
- 2:094c09903a9c
Commande Bluetooth test moteur
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Nanaud | 1:2fe8c402ee79 | 1 | // Nom du fichier : codeurs.cpp |
| Nanaud | 0:dc036b67c87c | 2 | #include "pins.h" |
| Nanaud | 0:dc036b67c87c | 3 | |
| Nanaud | 1:2fe8c402ee79 | 4 | // Variables globales |
| Nanaud | 1:2fe8c402ee79 | 5 | long cpt_cdgA=0; // Codeur de gauche |
| Nanaud | 1:2fe8c402ee79 | 6 | long cpt_cddA=0; // Codeur de droite |
| Nanaud | 0:dc036b67c87c | 7 | |
| Nanaud | 0:dc036b67c87c | 8 | void cdgaRise(){ |
| Nanaud | 0:dc036b67c87c | 9 | if(cdgB) cpt_cdgA++; |
| Nanaud | 0:dc036b67c87c | 10 | else cpt_cdgA--; |
| Nanaud | 0:dc036b67c87c | 11 | } |
| Nanaud | 0:dc036b67c87c | 12 | |
| Nanaud | 0:dc036b67c87c | 13 | void cddaRise(){ |
| Nanaud | 0:dc036b67c87c | 14 | |
| Nanaud | 0:dc036b67c87c | 15 | } |