madhephaestus / ESP32Servo

Arduino-compatible servo library for the ESP32
138 stars 53 forks source link

Expose ticks for incremental adjustment of servo #51

Closed abstractBoyd closed 6 months ago

abstractBoyd commented 6 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.