mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Moving Servo min and max parameters to the attach() function from the constructor.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user