
Arduino Quick Start
M5Atom.
M5Unified and M5GFX driver libraries and any required dependencies.
Select the driver file that matches your operating system from the list below, download it, and extract it. You can also visit the FTDI Chip official website for additional FTDI driver versions. Then connect the device to your PC, open Device Manager, and install the FTDI driver (the screenshot below uses Windows 10 as an example). (Note: On some systems, you may need to install the driver twice for it to take effect. The unrecognized device is usually named M5Stack or USB Serial.)
| Driver Name | Download Link |
|---|---|
| Windows_Desktop_x64 | Download |
| Windows_Desktop_x86_32 | Download |
| Windows_Desktop_ARM | Download |
| MacOS_Intel | Download |
| MacOS_ARM64 | Download |
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
...