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
622 stars 196 forks source link

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

Closed deadprogram closed 6 months ago

deadprogram commented 6 months 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 6 months ago

Any other feedback here before merge?

deadprogram commented 6 months ago

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