m5stack / M5Core2

M5Core2 Arduino Library
MIT License
262 stars 113 forks source link

Custom i2s_write src #124

Closed capedra closed 1 month ago

capedra commented 1 year ago

@Tinyu-Zhao How's it possible to generate a custom array that is currently found here (https://github.com/m5stack/M5Core2/blob/master/examples/FactoryTest/FactoryTest/preview_R.c) to play custom sounds/music from my own instead of just M5.Spk.DingDong(); or i2s_write(SPAKER_I2S_NUMBER, previewR, 120264, &bytes_written, portMAX_DELAY);

Thank you very much !!!

Tinyu-Zhao commented 1 year ago

You can try using these tools.

https://github.com/m5stack/M5Stack/blob/master/tools/bin2code.py

https://github.com/imliubo/A-Eye-Image2array-tool

digi-thomas2003 commented 1 year ago

Hello,

Take a look at this: Sound on a M5Core2 Is it what you mean?

Regards Tom

Tinyu-Zhao commented 1 year ago

Hello,

Take a look at this: Sound on a M5Core2 Is it what you mean?

Regards Tom

You are giving examples related to playing sound