madhephaestus / ESP32Servo

Arduino-compatible servo library for the ESP32
139 stars 55 forks source link

Expose ticks for incremental adjustment of servo #51

Closed abstractBoyd closed 7 months ago

abstractBoyd commented 7 months ago

On the project I'm working on, we're integrating a 9g servo with a joystick control.

In this scenario, we don't need to set the servo to a specific angle so much as move it forward and backward a certain amount but still within limits. Exposing readTicks() and writeTicks() was a handy way to do this while maintaining existing functionality.