dcmotor26 2.1.0.0
|
DC Motor 26 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
DC Motor 26 Click example.
This example demonstrates the use of DC Motor 26 click board by controlling the speed of DC motor over PWM duty cycle as well as displaying the motor current consumption.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Changes the operation mode and motor speed by setting the PWM duty cycle and then calculates the motor current consumption for that speed. All data is being logged on the USB UART where you can track changes.
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 | ) |