mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +01:00
23 lines
339 B
C++
23 lines
339 B
C++
#include <Servo.h>
|
|
|
|
#ifndef PEN_H
|
|
#define PEN_H
|
|
|
|
class Pen {
|
|
private:
|
|
int posEngaged;
|
|
int posDisengaged;
|
|
int pin;
|
|
bool engaged = true;
|
|
Servo servo;
|
|
|
|
public:
|
|
Pen(int pin, int posEngaged, int posDisengaged);
|
|
void engage();
|
|
void disengage();
|
|
void init();
|
|
bool getEngaged();
|
|
~Pen();
|
|
};
|
|
|
|
#endif |