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
Revision 9:3615573bfe43, committed 2020-07-14
- Comitter:
- g0dd4
- Date:
- Tue Jul 14 09:31:25 2020 +0000
- Parent:
- 8:f461cf45d0b1
- Commit message:
- mise a jour V1.1 ;
Changed in this revision
main.cpp | Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jul 14 09:30:48 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ - #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); - } -}