mirror of
https://github.com/m5stack/M5Stack.git
synced 2026-05-20 10:06:46 -07:00
2.0 KiB
2.0 KiB
M5Stack Library
Usage
Installing the USB Driver
- Download the SiLabs CP2104 Driver (Note:If you cannot upload, please try the legacy v4 driver below. Note you will need to uninstall the v5 driver.And try to use the low band: 115200)
Installing the ESP32 Arduino Core
- Using Arduino IDE
- Using PlatformIO
- Building with make
- Using as ESP-IDF component
Download Library
Using the Arduino IDE Library Manager
- Choose
Sketch->Include Library->Manage Libraries... - Type
m5stackinto the search box. - Click the row to select the library.
- Click the
Installbutton to install the library. - Click "File-> Examples". Here are some test programs in "M5Stack->"
Using Git
cd ~/Documents/Arduino/libraries/
git clone https://github.com/m5stack/M5Stack.git
API
See API.
Examples
See examples folder.
Hardware
Pinout
| Peripheral Devices | ESP32 |
|---|---|
| ILI9341 RST | GPIO33 |
| ILI9341 DC | GPIO27 |
| ILI9341 CS | GPIO14 |
| ILI9341 MOSI | GPIO23 |
| ILI9341 CLK | GPIO18 |
| ILI9341 LIGHT | GPIO32 |
| TFCARD MOSI | GPIO23 |
| TFCARD MISO | GPIO19 |
| TFCARD CLK | GPIO18 |
| TFCARD CS | GPIO4 |
| BUTTON A | GPIO39 |
| BUTTON B | GPIO38 |
| BUTTON C | GPIO37 |
| SPEAKER | GPIO25 |
| MPU9250 SDA | GPIO21 |
| MPU9250 SCL | GPIO22 |
| GOVER SDA | GPIO21 |
| GOVER SCL | GPIO22 |
