O'Reilly logo

Getting Started with Adafruit Trinket by Mike Barela

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Making Electronic Sounds

Sound is a very personal part of any project. Everyone has his particular vision of how something should sound. The Trinket Animal project in Chapter 6 used customizable sounds. This type of sound generation can be added to many Trinket projects.

The Arduino tone function does not work with the Arduino IDE used to program Trinket. This is not a hindrance, though, as tone generation can be done simply with a tiny bit of code.

To experiment with sounds, you can use a sound creation program on Trinket or other Arduino compatibles. The program shown in this appendix comes with several preprogrammed sounds:

  • A bird chirp (best)

  • Cat meows (a “meeee-ow,” a “me-oooow,” and a “mew”)

  • Dog sounds (“ruff” and “arf”) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required