
Arduino Quick Start
M5Atom.
M5Unified and M5GFX driver libraries and any required dependencies.
M5Stack or USB Serial. For Windows, it is recommended to use the driver file to install directly in the Device Manager (custom update), while the executable file installation method may not work properly.)FTDI VCP Driver Download Page:
Installation Method:
System Preferences → Security & Privacy → General and allow apps downloaded from App Store and identified developers if prompted.Connect the device via USB. After the driver is installed, select the corresponding serial port in the Arduino IDE.
Open the example sketch LogOutput from the driver library, set Tools -> Core Debug Level to Info, then click Upload. The sketch will be compiled and flashed automatically.
Example serial output:
[0;31mM5.Log error log [0m
[0;33mM5.Log warn log [0m
[0;32mM5.Log info log [0m
[0;36mM5.Log debug log [0m
[0;37mM5.Log verbose log [0m
[0;31m[ 386][E][LogOutput.ino:63] setup(): M5_LOGE error log [0m
[0;33m[ 393][W][LogOutput.ino:64] setup(): M5_LOGW warn log [0m
[0;32m[ 399][I][LogOutput.ino:65] setup(): M5_LOGI info log [0m
[0;36m[ 404][D][LogOutput.ino:66] setup(): M5_LOGD debug log [0m
[0;37m[ 411][V][LogOutput.ino:67] setup(): M5_LOGV verbose log [0m
M5.Log.printf non level output
[0;33m[ 1407][W][LogOutput.ino:79] loop(): BtnA 1 click [0m
[0;37m[ 1443][V][LogOutput.ino:93] loop(): count:1 [0m
[0;37m[ 2467][V][LogOutput.ino:93] loop(): count:2 [0m
[0;37m[ 3491][V][LogOutput.ino:93] loop(): count:3 [0m
...