Hi @steinoxyd ,
I had the same issue which I got help with on the m5stack github before seeing this. I may as well direct you straight to it than repeating it fully here;
The issue is the 'IMU.calibrateMPU9250(IMU.gyroBias, IMU.accelBias);' which if commented out, the code will run.
From the comment from @lukasmaximus I have not realised the probable reason for the issue.
I don't check this forum that regularly, so you're kind of lucky I see this. It's best to open an issue on the M5ez github.
As for your question: ez.buttons.poll() should return the key pressed, or an empty string if nothing is pressed, so you are presumably calling it from inside a loop? If you have nothing else to do in that loop and just want the the code to wait for a keypress, use ez.buttons.wait() instead. Let me know if this was not the issue, and in that case maybe show the code.
Hi, you can find the datasheet here. It is in Chinese but Google translate does a pretty decent job so we can understand almost everything.
You can also have a look a register 36h where you can modify long/short press times. Be careful, this button is used to power-on/off the device
So, what is the state of concurrency programming in MicroPython? I see an RFC from 2014  and a thread from the same year , but I don't know if this is in MicroPython (like is generators there?)?
The RTOS of Arduino, is to the best of my knowledge, not much useful .
Now, anybody who knows about Zephyr and the M5?
 RFC: Cooperative concurrency model of choice for MicroPython
 uasyncio - asyncio-like cooperative multitasking framework for uPy
 Arduino concurrency (Blog note, same disclaimer as above)
Guess what? I hit another wall.
It seems the camera is giving trouble, despite me configuring the pins as here:
E (218) camera: Camera probe failed with error 0x20001
ESP_ERROR_CHECK failed: esp_err_t 0x20001 (ERROR) at 0x4008a228
0x4008a228: _esp_error_check_failed at /home/marta/esp/esp-idf/components/esp32/panic.c:721
file: "/home/marta/Arduino/esp32-cam-ai-thinker/examples/google_storage/main/main.c" line 195
int "XCLK Frequency"
The XCLK Frequency in Herz.
menu "Pin Configuration"