https://espressif.github.io/arduino-esp32/package_esp32_index.json
ESP32
and install the board manager.ESP32S3 Dev Module
OPI PSRAM
M5Unified
, M5GFX
, and Epdiy
driver libraries. (Install the dependent M5GFX
library as prompted). Note: M5Unified
and M5GFX
versions must be greater than 0.2.2.epdiy
in the Arduino library manager is outdated, you need to manually download it from
Epdiy - GitHub
and place it in the Arduino library folder.C:\Users\{username}\Documents\Arduino
/Users/{username}/Documents/Arduino
/home/{username}/Arduino
Connect the device to the computer via USB. Press and hold the power button on the M5PaperS3. When the status light on the back blinks red, it indicates that the device has entered download mode.
Wait for the device to be recognized and select the corresponding port in Arduino IDE.
Open the example program "BarGraph" from the M5GFX library, and add #include <epdiy.h>
at the beginning of the program. Click the upload button to compile and burn the program automatically.
For drivers of peripherals such as the buzzer, IMU, and RTC, you can refer to the example programs in the M5Unified
library.
__has_include(<epdiy.h>)
. When compiling in Arduino IDE without including <epdiy.h>
, the device may fail to function properly. In such cases, please navigate to the path C:\Users\PC\AppData\Local\arduino\sketches, delete the cache corresponding to the current program, include <epdiy.h>
, and recompile.