raspberrypi / pico-extras

BSD 3-Clause "New" or "Revised" License
480 stars 120 forks source link

Include pico_tone library #70

Open jcarranz97 opened 12 months ago

jcarranz97 commented 12 months ago

Fixes #69 This PR was previously made against pico-sdk but now requesting to include the library as part of pico-extras as per @lurch recommendation.

This PR includes tone functions to generate tones using PWM.

The tone function is similar to tone() from Arduino. I have also included a no_tone function to silence buzzer if needed.

Inspiration and References: