stefa168 / tlc5940arduino

Automatically exported from code.google.com/p/tlc5940arduino
0 stars 0 forks source link

suggestion : freewheel/torque for servos. #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Something I use along with the tlc servo library, useful to set servos at rest :

void tlc_servoTorqueOff() {
        TCCR1B &= ~(_BV(CS12) | _BV(CS11) | _BV(CS10));
}

void tlc_servoTorqueOn() {
        TCCR1B |= _BV(CS11);
}

The caveat is that it applies to all servos connected, but still proves useful.

Original issue reported on code.google.com by charlesg...@gmail.com on 16 Jun 2011 at 10:30