dcmotor13 2.0.0.0
|
DCMotor13 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
DCMotor13 Click example.
This example demonstrates the use of DC Motor 13 click board by driving the motors in both direction in the span of 9 seconds.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which sets the output torque to 100%.
Drives the motors in the clockwise direction, then switches to the counter-clockwise direction, and after that pulls the motors brake with a 3 seconds delay after each change. Each step will be logged on the USB UART where you can track the program flow.
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 | ) |