mirror of
https://github.com/Kugelschieber/arduino-c.git
synced 2026-01-18 11:00:26 +00:00
Fixed some PWM pins and started servo library.
This commit is contained in:
12
servo/servo.h
Normal file
12
servo/servo.h
Normal 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
|
||||
Reference in New Issue
Block a user