mirror of
https://github.com/Kugelschieber/arduino-c.git
synced 2026-01-18 11:00:26 +00:00
13 lines
182 B
C
13 lines
182 B
C
#ifndef SERVO_H_
|
|
#define SERVO_H_
|
|
|
|
typedef struct{
|
|
unsigned char pin;
|
|
unsigned char val; // 0-255
|
|
} Servo;
|
|
|
|
void servo_init(Servo*);
|
|
void servo_set(Servo*, unsigned char);
|
|
|
|
#endif
|