Factory Test and Microphone example not compiling M5 Stick C Plus (latest version)
-
Line 438 in M5StickCPlus\examples\FactoryTest.ino and line 55 M5StickCPlus\examples\Micophone.ino has a compile error on the line marked ----> below
i2s_pin_config_t pin_config;
#if (ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4, 3, 0))
--------> pin_config.mck_io_num = I2S_PIN_NO_CHANGE;
#endif
pin_config.bck_io_num = I2S_PIN_NO_CHANGE;The error is:
C:\Projects\ArduinoSketchbooks\GPS-Mic-Test\GPS-Mic-Test.ino: In function 'bool InitI2SMicroPhone()':
GPS-Mic-Test:438:16: error: 'struct i2s_pin_config_t' has no member named 'mck_io_num'; did you mean 'bck_io_num'?
pin_config.mck_io_num = I2S_PIN_NO_CHANGE;
^~~~~~~~~~
bck_io_num...
exit status 1
'struct i2s_pin_config_t' has no member named 'mck_io_num'; did you mean 'bck_io_num'? -
@bazman Fix is to delete the line! Both the microphone example and the factory test project then work.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login