tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
584 stars 180 forks source link

servo: add function SetAngle() to simplify API for most common use case #681

Closed deadprogram closed 1 month ago

deadprogram commented 1 month ago

This PR modifies the servo package to add a new function SetAngle() to simplify API for most common use case: move a servo to a particular angle.

deadprogram commented 1 month ago

Any other feedback here before merge?

deadprogram commented 1 month ago

I have addressed all of the comments on this PR, so now merging. Thanks for the feedback @aykevl