pdf-icon

Buzzer

#include "M5Cardputer.h"

void setup() {
    auto cfg = M5.config();
    M5Cardputer.begin(cfg);
}

void loop() {
    M5Cardputer.Speaker.tone(10000, 100);
    delay(1000);
    M5Cardputer.Speaker.tone(4000, 20);
    delay(1000);
}
On This Page