Hello, I am new to using these products. I have a Core2 and I am programming in Arduino. I just cannot figure out how to generate a beep with the speaker? Is this possible to do in Arduino? Should I get an M5 Stack 1 instead? I just need to generate a simple beep. Please let know if you have any input. Thank you.
Best posts made by akaf24
-
How to Generate a Beep?
Latest posts made by akaf24
-
RE: How to Generate a Beep?
@agreedk thank you for reply. I keep getting a compile error. A beep isn't totally needed in my project so i'm just going to leave it out.
-
RE: How to Generate a Beep?
thank you for the reply. I think I'm stuck on pin assignment. So on the back of my core2, it says BCLK is 12, LRCK is 0 and DATA is 0. But the example code also has "CONFIG_I2S_DATA_IN_PIN" and "SPEAKER_I2S_NUMBER" but I am not sure what to assign these as.
-
RE: How to Generate a Beep?
@jesse-schein haha wow, there's certainly a lot there. Thanks for this info. I just need to generate a simple beep once every few seconds, but it seems like I can only generate sound from from a wav or other file type? I was hoping there would be a tone() function, but I guess i'll just have to go through a few extra steps to get what I need.
Edit: I just tried uploading some of these examples and they would not generate sound. I'll have to take a closer look at what's going on -
RE: How to Generate a Beep?
@bricoms Thank you for the reply. I tried that example, but it did not work for me. I am using an M5 Stack core2 and that seems to be a library for just the Stack.
-
RE: How to Generate a Beep?
Thanks for the reply. I cannot find any examples for this. I clicked through all the given examples and nothing came up when I searched "beep" or "tone" or "speaker". I looked through the library I have installed on arduino, and also this one that has more examples: https://github.com/m5stack/M5Core2
-
How to Generate a Beep?
Hello, I am new to using these products. I have a Core2 and I am programming in Arduino. I just cannot figure out how to generate a beep with the speaker? Is this possible to do in Arduino? Should I get an M5 Stack 1 instead? I just need to generate a simple beep. Please let know if you have any input. Thank you.