Arduino Quick Start
APIs and example programs related to the Fire speaker.
#include "M5Unified.h"
void setup() {
M5.begin();
}
void loop() {
M5.Speaker.tone(7000, 100); // frequency, duration
delay(1000);
M5.Speaker.tone(4000, 20); // frequency, duration
delay(1000);
}
The Fire speaker uses the Speaker_Class
from the M5Unified
library. For more related APIs, please refer to the following documentation: