Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <M5Stack.h>
#include "SimpleBeep.h"
void setup(void){
M5.begin();
sb.init();
}
void loop(void){
M5.update();
if(M5.BtnA.wasPressed()){
sb.beep(5,C4,100);
}
if(M5.BtnB.wasPressed()){
sb.beep(5,D4,100);
}
if(M5.BtnC.wasPressed()){
sb.beep(5,E4,100);
}
delay(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment