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: pins.cpp
- Revision:
- 4:ad9b7355332e
- Parent:
- 1:2fe8c402ee79
- Child:
- 5:34ed652f8c31
--- a/pins.cpp Wed Jul 15 17:51:04 2020 +0000 +++ b/pins.cpp Sat Jul 18 17:09:08 2020 +0000 @@ -16,9 +16,11 @@ #define DIR1 PC_2 #define DIR2 PH_1 #define EN PC_3 -BusOut MODE(PB_0, PC_1, PC_0); // LSB ... MSB -DRV8825 drvGauche(EN,DIR1,STEP1); -DRV8825 drvDroite(EN,DIR2,STEP2); +#define rRoue 70 // peut être 71 mm +#define nbPas 1000 +BusOut mode(PB_0, PC_1, PC_0); // LSB ... MSB +DRV8825 drvGauche(EN,DIR1,STEP1,rRoue,nbPas); +DRV8825 drvDroite(EN,DIR2,STEP2,rRoue,nbPas); // Codeurs (Réf : LPJ3806-1000BM-G5-24E) InterruptIn cdgA(PA_8); // Codeur de gauche