m5stack / M5Unified

Unified library for M5Stack series
MIT License
302 stars 54 forks source link

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

Open GeorgeNegret opened 12 months ago

GeorgeNegret commented 12 months ago

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 .

lovyan03 commented 12 months ago

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

GeorgeNegret commented 12 months ago

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 !

lovyan03 commented 11 months ago

Please give me some time to investigate the cause.

GeorgeNegret commented 10 months ago

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

lovyan03 commented 10 months ago

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