|
servo2 2.1.0.0
|
Servo 2 Click example. More...
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Servo 2 Click example.
This example demonstrates the use of the Servo 2 Click board for controlling the angle of servo motors. The board is capable of driving multiple servos, and the example illustrates how to change the angle of all connected servos simultaneously within a defined range.
The demo application is composed of two sections:
Initializes the logger module and configures the Servo 2 Click board. The PWM communication is established, and the device is prepared for controlling the servos.
Gradually changes the angle of all connected servo motors from a minimum to a maximum value, and then back to the minimum, creating a sweeping motion. The current angle is logged during each update.
| 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 | ) |