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
main.cpp
- Committer:
- g0dd4
- Date:
- 2020-07-14
- Revision:
- 8:f461cf45d0b1
File content as of revision 8:f461cf45d0b1:
#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); } }