dcmotor22 2.0.0.0
|
DC Motor 22 Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
DC Motor 22 Click Example.
This example demonstrates the use of DC Motor 22 click board by controlling the speed of both motors over PWM duty cycle as well as displaying the motors current consumption.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Controls the motor speed by changing the PWM duty cycle every 5 seconds, and displays the motors current consumption. The duty cycle ranges from -100% to +100%. 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 | ) |