Mastering Arduino : a Project-Based Approach to Electronics, Circuits, and Programming - Hoffman, Jon (Packt Publishing Ltd, 2018)
Using the tone function.