@joeybab3 It seems those libraries you used are designed for Arduino Chip which has been defined A0. So you need change those libraries sources so that they are compatible with ESP32 chip.
Hello,
please, could you help me? What is M5.powerOFF() doing inside? I am using the esp-idf for my projects with M5Stack and I want Power off from software, but I can only deinitialize all of my routines and turn off display. And when I want to powr on again after power button, then the device turn off first.