Fixed some PWM pins and started servo library.

This commit is contained in:
Marvin Blum
2017-04-20 01:17:31 +02:00
parent 27eee937a3
commit 55261de66c
5 changed files with 88 additions and 76 deletions

12
servo/servo.h Normal file
View File

@@ -0,0 +1,12 @@
#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