dcmotor2 2.0.0.0
|
DcMotor2 Click example. More...
Functions | |
void | application_init () |
void | application_task () |
int | main (void) |
Variables | |
uint8_t | dcmotor_direction = 1 |
DcMotor2 Click example.
This library contains API for the DC Motor 2 Click driver. This example showcases how to initialize and use the DC Motor 2 click. The click contains a Driver IC for DC motors which can spin the motor clockwise, counter-clockwise, break it and completely stop the motor. The example needs a DC motor and a power supply in order to work.
The demo application is composed of two sections :
This function initializes and configures the logger and click modules.
This is an example that demonstrates the use of the DC Motor 2 Click board. DC Motor 2 Click communicates with register via PWM interface. It shows moving in the Clockwise direction from slow to fast speed and from fast to slow speed, then rotating Counter Clockwise, Results are being sent to the Usart Terminal where you can track their changes.
void application_init | ( | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | ) |
int main | ( | void | ) |
uint8_t dcmotor_direction = 1 |