High-level driver for easy handling of servo motors. More...
High-level driver for easy handling of servo motors.
Definition in file servo.h.
#include "periph/pwm.h"
Go to the source code of this file.
Data Structures | |
struct | servo_t |
Descriptor struct for a servo. More... | |
Functions | |
int | servo_init (servo_t *dev, pwm_t pwm, int pwm_channel, unsigned int min, unsigned int max) |
Initialize a servo motor by assigning it a PWM device and channel. More... | |
void | servo_set (const servo_t *dev, unsigned int pos) |
Set the servo motor to a specified position. More... | |