ArduboyTones - a library for generating tone sequences

Do you mean an example of using the ArduboyTones library?

#include <Arduboy2.h>
#include <ArduboyTones.h>

Arduboy2 arduboy;
ArduboyTones sound(;

void setup() {

void loop() {
  sound.tone(NOTE_C3,500, NOTE_D3,250, NOTE_E3,1000);
  arduboy.delayShort(2000); // the tones will be playing during this delay

No. The Arduboy2 audio functions are only to provide control of muting or unmuting sound.

You can use the ArduboyTones playing() function to determine if something is currently playing but not what tone is playing or for how long.

Your example doesn’t play any audio on my DIY arduboy where the speaker is on Pro Micro pin D5.

It should, as long as the other side of the speaker is connected to ground (or the proper pin 13, which isn’t available on a Pro Micro).

Does sound work for any other sketches? If not, maybe sound is muted. To unmute, Hold B while powering up and press UP while still holding B, then release both. (Pressing DOWN instead of UP will mute.)

I optimized the ArduboyTones library interrupt service routine by ~52 bytes :slight_smile:

Since my version of the library also has additional changes for the Homemade package I just give a link to the changes here:

I shall update the FX version too!