dcmotor19 2.0.0.0
|
DC Motor 19 Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
DC Motor 19 Click Example.
This example demonstrates the use of DC Motor 19 click board by driving the motors in both direction in the span of 14 seconds.
The demo application is composed of two sections :
Initializes the driver and enables the click by disabling the standby mode.
Drives the motors in the forward direction for 5 seconds, then pulls brake for 2 seconds, and after that drives them in the reverse direction for 5 seconds, and finally, stops driving for 2 seconds which basically disconnects the motors. 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 | ) |