M5Unified icon indicating copy to clipboard operation
M5Unified copied to clipboard

can't ring the speaker of M5Stack CoreS3 with esp-idf

Open GeorgeNegret opened this issue 2 years ago • 5 comments
trafficstars

Hi, I try to ring the speaker of M5Stack CoreS3 on an esp-idf project with M5Unified component , I have no compilation errors but the speaker remains mute , in the arduino framework speaker works fine .

GeorgeNegret avatar Oct 07 '23 11:10 GeorgeNegret

Hello, @GeorgeNegret Please give me the version information of the libraries and IDFs you used and the source code you tried.

lovyan03 avatar Oct 07 '23 11:10 lovyan03

Hello, @lovyan03 IDF 5.1 , M5Unified master ,

'#include "M5Unified.h"

void m5_init() { auto cfg = M5.config(); M5.begin(cfg); for (int i = 0; i < 60; ++i) { float Hz = 220 * powf(2.0, i / 12.0f); M5.Speaker.tone(Hz, 50, 0, false); } M5.Display.fillScreen(TFT_ORANGE); M5.Display.setCursor(0, 0, 2); M5.Display.setTextColor(TFT_BLACK); M5.Display.setTextFont(4); M5.Display.println("OrangeWheel started !"); }

extern "C" void app_main() { m5_init(); }`

Thanks !

GeorgeNegret avatar Oct 07 '23 13:10 GeorgeNegret

Please give me some time to investigate the cause.

lovyan03 avatar Oct 11 '23 01:10 lovyan03

Hi, @lovyan03 any news about the cause ? Thanks !

GeorgeNegret avatar Nov 16 '23 08:11 GeorgeNegret

I'm very sorry, I haven't made any progress yet due to frequent additions of travel work and urgent tasks for a while....

lovyan03 avatar Nov 20 '23 06:11 lovyan03