SRA Board Components
ESP-IDF component for SRA Board
|
#include "servo.h"
Macros | |
#define | STR(A) #A |
Functions | |
esp_err_t | enable_servo () |
Enables Servo port on the sra board, sets up PWM for the three pins in servo port. More... | |
esp_err_t | set_angle_servo (servo_config *config, unsigned int degree_of_rotation) |
Set the angle of the servos attached to the servo port of SRA Board. More... | |
int | read_servo (servo_config *config) |
Get the angle of the servos. More... | |
#define STR | ( | A | ) | #A |
esp_err_t enable_servo | ( | ) |
Enables Servo port on the sra board, sets up PWM for the three pins in servo port.
int read_servo | ( | servo_config * | config | ) |
Get the angle of the servos.
esp_err_t set_angle_servo | ( | servo_config * | config, |
unsigned int | degree_of_rotation | ||
) |
Set the angle of the servos attached to the servo port of SRA Board.
config | pointer to the servo_config struct |
degree_of_rotation | angle to which the servo must be set, depends on value of MAX_DEGREE macro |