1. Open Arduino IDE 2.X, and select Library Manager
from the sidebar. Based on the device you are using, search for the relevant library name in the search box
(such as M5CoreS3, M5Core2, M5Unified), and click Install
.
Install All
to avoid potential issues with some example programs or drivers not compiling correctly.3. Wait for the installation to complete, and then you can start using it
Manually install using the git version control tool to the library management path. Note: The path to Arduino libraries may vary across different systems. Manual installation does not automatically fetch the dependencies for the driver library. You can view the library.properties
file in the driver library to get dependency information and then install them manually.
C:\Users\{username}\Documents\Arduino
/Users/{username}/Documents/Arduino
/home/{username}/Arduino
git clone https://github.com/m5stack/M5Unified.git
File
-> Examples
-> {library name}, as shown in the image below.