Contiki-NG

Driver for a generic Servo driver. More...

#include "contiki.h"
#include "dev/pwm.h"
#include "dev/gpio.h"
#include "servo.h"

Go to the source code of this file.

Functions

Servo public funtions
int servo_position (uint16_t gptab, uint8_t port, uint8_t pin, uint16_t pos)
 Configures and positions a servo in a given position (by degrees) The servo will lock its position as long as it is not stopped. More...
 
int servo_stop (uint16_t gptab, uint8_t port, uint8_t pin)
 Fully stop a servo and reconfigures back the pin/port as GPIO. More...
 

Detailed Description

Driver for a generic Servo driver.

Author
Antonio Lignan alina.nosp@m.n@zo.nosp@m.lerti.nosp@m.a.co.nosp@m.m

Definition in file servo.c.