Do you mean an example of using the ArduboyTones library?
#include <Arduboy2.h>
#include <ArduboyTones.h>
Arduboy2 arduboy;
ArduboyTones sound(arduboy.audio.enabled);
void setup() {
arduboy.begin();
}
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.
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.)