|
@@ -42,9 +42,9 @@
|
42
|
42
|
int8_t attach(const int pin); // attach the given pin to the next free channel, set pinMode, return channel number (-1 on fail)
|
43
|
43
|
int8_t attach(const int pin, const int min, const int max); // as above but also sets min and max values for writes.
|
44
|
44
|
void detach();
|
45
|
|
- void write(const int value); // if value is < 200 it is treated as an angle, otherwise as pulse width in microseconds
|
46
|
|
- void writeMicroseconds(const int value); // write pulse width in microseconds
|
47
|
|
- void move(const int value); // attach the servo, then move to value
|
|
45
|
+ void write(int value); // if value is < 200 it is treated as an angle, otherwise as pulse width in microseconds
|
|
46
|
+ void writeMicroseconds(int value); // write pulse width in microseconds
|
|
47
|
+ void move(const int value); // attach the servo, then move to value
|
48
|
48
|
// if value is < 200 it is treated as an angle, otherwise as pulse width in microseconds
|
49
|
49
|
// if DEACTIVATE_SERVOS_AFTER_MOVE wait SERVO_DELAY, then detach
|
50
|
50
|
int read(); // returns current pulse width as an angle between 0 and 180 degrees
|