Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GeorgeNegret opened this issue Oct 7, 2023 · 5 comments
Open

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

GeorgeNegret opened this issue Oct 7, 2023 · 5 comments

Comments

@GeorgeNegret
Copy link

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
Copy link
Collaborator

lovyan03 commented Oct 7, 2023

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

@GeorgeNegret
Copy link
Author

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
Copy link
Collaborator

Please give me some time to investigate the cause.

@GeorgeNegret
Copy link
Author

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

@lovyan03
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants