|
|
@ -98,7 +98,7 @@ bool libServo::attach(const int32_t pin, const int32_t minAngle, const int32_t m
|
|
|
|
if (!PWM_PIN(pin)) return false;
|
|
|
|
if (!PWM_PIN(pin)) return false;
|
|
|
|
|
|
|
|
|
|
|
|
timer_dev *tdev = PIN_MAP[pin].timer_device;
|
|
|
|
timer_dev *tdev = PIN_MAP[pin].timer_device;
|
|
|
|
uint8_t tchan = PIN_MAP[pin].timer_channel;
|
|
|
|
//uint8_t tchan = PIN_MAP[pin].timer_channel;
|
|
|
|
|
|
|
|
|
|
|
|
SET_PWM(pin);
|
|
|
|
SET_PWM(pin);
|
|
|
|
servoWrite(pin, 0);
|
|
|
|
servoWrite(pin, 0);
|
|
|
@ -221,7 +221,7 @@ void libServo::move(const int32_t value) {
|
|
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
|
|
bool libServo::setupSoftPWM(const int32_t pin) {}
|
|
|
|
bool libServo::setupSoftPWM(const int32_t pin) { return false; }
|
|
|
|
void libServo::pwmSetDuty(const uint16_t duty_cycle) {}
|
|
|
|
void libServo::pwmSetDuty(const uint16_t duty_cycle) {}
|
|
|
|
void libServo::pauseSoftPWM() {}
|
|
|
|
void libServo::pauseSoftPWM() {}
|
|
|
|
|
|
|
|
|
|
|
|