The friendly Operating System for the Internet of Things

High-level driver for easy handling of servo motors. More...

Detailed Description

#include "periph/pwm.h"
+ Include dependency graph for servo.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 (servo_t *dev, unsigned int pos)
 Set the servo motor to a specified position. More...