-
Notifications
You must be signed in to change notification settings - Fork 0
/
Leg.h
38 lines (35 loc) · 892 Bytes
/
Leg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
@author Adam Claassen, [email protected]
*/
class Leg{
public:
void Leg(
uint8_t innerServoPin,
uint8_t middleServoPin,
uint8_t outerServoPin,
uint8_t innerLedAddr,
uint8_t middleLedAddr,
uint8_t outerLedAddr
);
void up();
void down();
void fwd();
void back();
void fold();
void unfold();
void setHeight(uint8_t heightPcnt);
void setRad(uint8_t radPcnt);
void setAng(uint8_t angPcnt);
uint8_t getRadPcnt();
uint8_t getAngPcnt();
uint8_t getHeightPcnt();
/* methods to be implemented later
void setLedInner(uint8_t R, uint8_t G, uint8_t B);
void setLedMiddle(uint8_t R, uint8_t G, uint8_t B);
void setLedOuter(uint8_t R, uint8_t G, uint8_t B);
void getLedInner(uint8_t R, uint8_t G, uint8_t B);
void getLedMiddle(uint8_t R, uint8_t G, uint8_t B);
void getLedOuter(uint8_t R, uint8_t G, uint8_t B);
*/
private:
};