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.
Dependents: AresCDFMainCode_capteur_US AresCDFMainCode_us2 AresCDFMainCode
Diff: main.cpp
- Revision:
- 8:f461cf45d0b1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jul 14 09:30:48 2020 +0000 @@ -0,0 +1,17 @@ + #include "mbed.h" +#include "DRV8825.h" + + +#define pinEN PC_8 +#define pinDIR PC_5 +#define pinSTEP PC_6 + +int main() { + + DRV8825 drv8825(pinEN,pinDIR,pinSTEP); + drv8825.setEnable(START); + drv8825.setDir(STOP); + while(1){ + drv8825.moveLinSpeed(1); + } +}