ImpulseAdventure / M5Stack

M5Stack Arduino Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Download Library

Using the Arduino IDE Library Manager

  1. Choose Sketch -> Include Library -> Manage Libraries...
  2. Type m5stack into the search box.
  3. Click the row to select the library.
  4. Click the Install button to install the library.
  5. 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

Schematic.

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

M-BUS

image

About

M5Stack Arduino Library

License:MIT License


Languages

Language:C 95.0%Language:C++ 4.6%Language:Objective-C 0.4%Language:Makefile 0.0%