2024-01-23 18:59:26 +01:00
|
|
|
/*
|
2024-03-22 13:16:11 +01:00
|
|
|
* lego_servo a libary for lego servos
|
2024-01-23 18:59:26 +01:00
|
|
|
* Created by me :3
|
|
|
|
* I copyrighted your mom lmao gottem
|
|
|
|
*/
|
|
|
|
#ifndef lego_servo
|
|
|
|
#define lego_servo
|
|
|
|
|
|
|
|
#include "Arduino.h"
|
|
|
|
class Servo {
|
|
|
|
public:
|
2024-03-22 13:16:11 +01:00
|
|
|
Servo(int pin_a, int pin_b);
|
2024-01-23 18:59:26 +01:00
|
|
|
void begin();
|
|
|
|
void position(int pos);
|
|
|
|
private:
|
|
|
|
int ipin_a;
|
|
|
|
int ipin_b;
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif
|