21 lines
358 B
C++
21 lines
358 B
C++
/*
|
|
* lego_servo a libary for contrling some lego servos
|
|
* Created by me :3
|
|
* I copyrighted your mom lmao gottem
|
|
*/
|
|
#ifndef lego_servo
|
|
#define lego_servo
|
|
|
|
#include "Arduino.h"
|
|
class Servo {
|
|
public:
|
|
Servo(int pin_a, int pinb);
|
|
void begin();
|
|
void position(int pos);
|
|
private:
|
|
int ipin_a;
|
|
int ipin_b;
|
|
|
|
};
|
|
#endif
|