
Arduino Quick Start
APIs and example programs related to the Unit C6L Buzzer.
#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 driver for the Unit C6L Buzzer uses the Speaker_Class from the M5Unified library. For more related APIs, please refer to the following documentation: