diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2008-08-21 23:48:38 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2008-08-21 23:48:38 +0000 |
commit | 2ed2ee36e7c51f63ecf1391bf62fcd65ad35caa5 (patch) | |
tree | a4bf1c4bb18aa51d14f82a6ee7d9cd1e6066a12c /libraries/Servo/Servo.h | |
parent | 1994278a7af0042efda5f01ac681c9dcdd92d38d (diff) |
Moving Servo min and max parameters to the attach() function from the constructor.
Diffstat (limited to 'libraries/Servo/Servo.h')
-rwxr-xr-x | libraries/Servo/Servo.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libraries/Servo/Servo.h b/libraries/Servo/Servo.h index 59f04d9..0b0e8db 100755 --- a/libraries/Servo/Servo.h +++ b/libraries/Servo/Servo.h @@ -36,9 +36,11 @@ class Servo static uint8_t attached10; public: Servo(); - Servo(int, int); // pulse length for 0 degrees in microseconds, 540uS default - // pulse length for 180 degrees in microseconds, 2400uS default - uint8_t attach(int); // attach to a pin, sets pinMode, returns 0 on failure, won't + uint8_t attach(int); + // pulse length for 0 degrees in microseconds, 544uS default + // pulse length for 180 degrees in microseconds, 2400uS default + uint8_t attach(int, int, int); + // attach to a pin, sets pinMode, returns 0 on failure, won't // position the servo until a subsequent write() happens // Only works for 9 and 10. void detach(); |