That seems a weird error to get from running M5Stack's simple Hello sketch which does not include a poweroff function. (?).
Also I don't know the "ResetReason" sketch that you referred to. Where did you find this ?
(1)OK it seems you have the M5Stack library installed in the correct place.
(2) Is the Espressif ESP32 library installed ? Check: C:\Users\█████\Documents\Arduino\Hardware\espressif\esp32\libraries . If you don't have files there go to M5Stack setup guide and install them.
(3) As PépéMax suggested, in the Arduino IDE, check that the M5Stack is selected as the board that you are using with the IDE. On the Arduino menu go to /Tools/Board . The M5Stack should be set here as the board you are using.
'...some function of the ESP32 does not work yet for the M5Stack library like analogWrite()
Just to clarify, as I understand it, the issue is that not all functions available on Arduino or ESP8266 boards are available at present on ESP32 boards in general - eg: analogWrite();. That is, the problem is not specific to M5Stack boards - it effects all ESP32 boards. Referenced here
thanks for your work on this…. Nice that M5Stack included your work.
Your efforts inspired me to give installation another crack – this time using Linux instead of Windows. MUCH better so far.
Just have to determine which serial port is in use… got a long list rather than a defined port when following the ESP-IDF setup guide that outlined how to distinguish the serial port in use. Will follow it up laterz.
@m5mpy microcode is very low level, I like how these MCU bring back old memories and old hacks like I used to do on Amiga. And how in general they force into better programming habits.
So what I'm trying to do is general purpose signal camera. At the moment, a sound camera will do. From what I was told on eevblog, I need one FFT per microphone to calculate inter-mic delay. So far Arduino FFT switched to uint32 (faster on esp32 than uin8 I'm told) I'm getting 512 bins at 12 ms, which is't very zippy as I'll need 4 cameras at least. Not that big a deal because I don't need 60fps refresh but ... well, that would be nice :D
As for the frequency, at the moment I'm interested in detecting the origin of low frequency sound as they're notoriously difficult to locate by ear. Eventually I'd like to expand into an EMF camera.
Concise code for sure. I need all the speed I can get so it'll be Arduino for now.
I'm surprised you wouldn't see any flicker on the display since you print every frame, also surprised that there is no clearScreen preceding the print. I'm thinking the python print has a background.
Sorry I didn't get a chance to look into that further - was busy with github stuff etc. Glad you found the problem. These things can be very particular !!
Also glad the link was useful....... the SAM menu is fantastic.... with the included I2C scanner and other features.
There are also two other excellent menu systems... You can easily add your own apps to the "M5Stack-SD-Updater" menu (more are being added over time) and the other "M5Stack_MultiApp _Firmware" has a number of useful tools included.... including I2C scanner, voltmeter, etc.....
@jimit Many thanks for the reply, it is sad as it was the example I wished to include in my M5Stack YouTube review. Glad you liked it anyway! For those who are interested the video is here: M5Stack Review