If you're looking to save even more space and more features like almost twice as loud output and volume control, check out my toneAC library as well. If you're running out of program space or have a timer conflict with the tone library, this is the library for you. Add the include, use NewTone() instead of tone() and noNewTone() instead of noTone() to enjoy the benefits. It's a plug-in replacement for the standard tone library. Uses timer 1 which may free up conflicts with the tone library.Higher quality sound output than tone library.Exclusive use of port registers for fastest and smallest code.About 1,200 bytes smaller code size than the Tone library.Making toneAC work like tone was simple and there would be several advantages over the tone library, so I spent an hour and made NewTone from the toneAC library. However, toneAC uses fixed timer 1 PWM pins so it's not as flexible. I'd already written a highly optimized toneAC library because I needed higher volume, volume control, higher frequency, and better quality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |