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.
Dependencies: mbed
Fork of display_nums2 by
Diff: stepper.h
- Revision:
- 1:3d6796759d45
- Child:
- 2:8a0f128f4be5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stepper.h Fri Mar 09 15:53:04 2018 +0000 @@ -0,0 +1,16 @@ + +#ifndef STEPPER_H +#define STEPPER_H + +#define STP_CW 1 +#define STP_CCW -1 + +#define DRV8806_MODE 0 //mode +#define DRV8806_FREQ 1000000 //frequency +#define DRV8806_BITS 8, //num of bits + + + +void stp_init(); +void stp_step(int direction); +
