stepper16 2.0.0.0
|
Stepper16 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Stepper16 Click example.
This example showcases the device's ability to control the motor. It initializes the device for control and moves the motor in two directions in a variety of speeds and step resolutions for 360 degrees.
The demo application is composed of two sections :
Initializes UART and SPI communication modules, and additional
pins for motor control, resets device, set's default configuration, and reads its ID and sets
First it move motor clockwise for 360 degrees in medium speed and full step resolution. Then changes direction and moves motor for 180 degrees in slow speed and quarter step, and additional 180 degrees in fast speed and 1/16 step resolution.
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |