#include <M5StickCPlus.h>
void setup() {
M5.begin();
M5.Beep.tone(4000, 300);
}
void loop() {
M5.update();
}
Syntax:
void begin();
Description:
Parameters:
Return:
Syntax:
void update();
Description:
Parameters:
Return:
Syntax:
void end();
Description:
Parameters:
Return:
Syntax:
void mute();
Description:
Parameters:
Return:
Syntax:
void tone(uint16_t frequency);
void tone(uint16_t frequency, uint32_t duration);
Description:
Parameters:
Return:
Syntax:
void beep();
Description:
Parameters:
Return:
Syntax:
void setBeep(uint16_t frequency, uint16_t duration);
Description:
Parameters:
Return:
Syntax:
void write(uint8_t value);
Description:
Parameters:
Return:
Syntax:
void setVolume(uint8_t volume);
Description:
Parameters:
Return:
Syntax:
void playMusic(const uint8_t *music_data, uint16_t sample_rate);
Description:
Parameters:
Return: