dcmotor2
2.0.0.0
|
DcMotor2 Click example. More...
Functions | |
void | application_init () |
void | application_task () |
void | main () |
DcMotor2 Click example.
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 function breaks the motor, starts spinning it clockwise and changes the rotation speed from min to max, breaks the motor again and spins it counter clockwise from max speed to min. It waits for one second after each action.
void application_init | ( | ) |
void application_task | ( | ) |
void main | ( | ) |