We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc26161 commit e7695a9Copy full SHA for e7695a9
libraries/Servo/src/Servo.cpp
@@ -85,10 +85,11 @@ void Servo::detach()
85
{
86
if (_attached) {
87
_servoMap &= ~(1 << _pin);
88
+ startWaveform(_pin, 0, REFRESH_INTERVAL, 1);
89
+ delay(REFRESH_INTERVAL / 1000); // long enough to complete active period under all circumstances.
90
stopWaveform(_pin);
91
_attached = false;
92
_valueUs = DEFAULT_NEUTRAL_PULSE_WIDTH;
- digitalWrite(_pin, LOW);
93
}
94
95
0 commit comments