dcmotor20 2.0.0.0
|
DC Motor 20 Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
DC Motor 20 Click Example.
This example demonstrates the use of DC Motor 20 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 sets the click board to standby mode.
Drives the motors in the forward direction for 5 seconds, and then switches the direction, with a brake time of 2 seconds between switching the direction. 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 | ) |