• Stars
    star
    302
  • Rank 138,030 (Top 3 %)
  • Language
    C++
  • License
    MIT License
  • Created about 3 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Unified library for M5Stack series

M5Unified

M5Stack Series unified library .

Supported framework

  • ESP-IDF
  • Arduino for ESP32

Supported device

  • M5Stack BASIC / GRAY / GO / FIRE
  • M5Stack Core2 / Tough
  • M5Stack CoreS3
  • M5Stick C / CPlus
  • M5Stack CoreInk
  • M5Station
  • M5Paper
  • M5ATOM Lite / Matrix / ECHO / PSRAM / U
  • M5ATOMS3 / S3Lite / S3U
  • M5STAMP PICO
  • M5STAMPC3 / C3U
  • M5STAMPS3

Supported device (external display)

  • Unit LCD
  • Unit OLED
  • Unit RCA
  • Unit GLASS
  • ATOM Display (with M5ATOM Lite / Matrix / PSRAM / S3 / S3Lite)
  • Module Display (with M5Stack / Core2 / Tough)
  • Module RCA (with M5Stack / Core2 / Tough)

Supported device (external speaker)

  • SPK HAT (with M5StickC / CPlus / M5Stack CoreInk)
  • SPK HAT2 (with M5StickCPlus)
  • ATOMIC SPK (with M5ATOM Lite / PSRAM / ATOMS3 / S3Lite)
  • Module Display (with M5Stack / Core2 / Tough)
  • Module RCA (with M5Stack / Core2 / Tough)

H/W infomation

ESP32 GPIO list

M5Stack
BASIC
GRAY
M5Stack
GO/FIRE
M5Stack
Core2
Tough
M5Stick
C/CPlus
M5Stack
CoreInk
M5Paper M5Station M5ATOM
Lite/Matrix
ECHO/U
PSRAM
M5STAMP
PICO
GPIO 0
ADC2_CH1
M-Bus
IIS_MK
M-Bus
IIS_MK
M-Bus
SPK_LRCK
PDM_C
(Core2)
HAT
PAD
PDM_C
EPD_RST --- --- --- GPIO 0
ADC2_CH1
GPIO 1
USB_TX
M-Bus
Serial
M-Bus
Serial
M-Bus
Serial
Serial Serial Serial Serial Serial Serial GPIO 1
USB_TX
GPIO 2
ADC2_CH2
M-Bus
M-Bus
M-Bus
SPK_D
PAD
Beep(CPlus)
Beep PW_Hold ReadEn --- --- GPIO 2
ADC2_CH2
GPIO 3
USB_RX
M-Bus
Serial
M-Bus
Serial
M-Bus
Serial
Serial Serial Serial Serial Serial Serial GPIO 3
USB_RX
GPIO 4
ADC2_CH0
TF_CS TF_CS TF_CS --- EPD_BUSY TF_CS RGB LED --- --- GPIO 4
ADC2_CH0
GPIO 5 M-Bus M-Bus LCD_CS LCD_CS BTN_HAT EXT_5V LCD_CS Bus(P)
PDM_C(U)
--- GPIO 5
GPIO 9 --- --- --- InfraRed EPD_CS --- --- --- --- GPIO 9
GPIO10 --- --- --- LED LED --- --- --- --- GPIO10
GPIO12
ADC2_CH5
M-Bus
IIS_SK
M-Bus
IIS_SK
SPK_BCLK --- PW_Hold SPI_MOSI USB_PW InfraRed --- GPIO12
ADC2_CH5
GPIO13
ADC2_CH4
M-Bus
IIS_WS
M-Bus
IIS_WS
M-Bus
RXD2
SPI_SCLK MI-Bus
RXD2
SPI_MISO PORT.C1 --- --- GPIO13
ADC2_CH4
GPIO14
ADC2_CH6
LCD_CS LCD_CS M-Bus
TXD2
--- MI-Bus
TXD2
SPI_SCLK PORT.C1 --- --- GPIO14
ADC2_CH6
GPIO15
ADC2_CH3
M-Bus
IIS_OUT
M-Bus
RGB LED
LCD_D/C SPI_MOSI EPD_D/C EPD_CS LCD_RST --- --- GPIO15
ADC2_CH3
GPIO16
PSRAM
M-Bus
RXD2
M-Bus
PORT.C
RXD2
--- --- --- --- PORT.C2
RXD2
--- --- GPIO16
PSRAM
GPIO17
PSRAM
M-Bus
TXD2
M-Bus
PORT.C
TXD2
--- --- --- --- PORT.C2
TXD2
--- --- GPIO17
PSRAM
GPIO18 M-Bus
SPI_SCLK
M-Bus
SPI_SCLK
SPI_SCLK LCD_RST MI-Bus
SPI_SCLK
PORT.C SPI_SCLK --- GPIO18
GPIO19 M-Bus
SPI_MISO
M-Bus
SPI_MISO
M-Bus --- RTC_INT PORT.C LCD_D/C Bus
SPK_C(ECHO)
*P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PI_MISO
--- USB Current? --- GPIO34
ADC1_CH6
GPIO35
ADC1_CH7
M-Bus M-Bus M-Bus RTC_INT BAT_V BAT_V PORT.B1 --- --- GPIO35
ADC1_CH7
GPIO36
ADC1_CH0
M-Bus M-Bus
PORT.B
M-Bus HAT
PAD
MI-Bus
HAT
TP_INT PORT.B2 --- --- GPIO36
ADC1_CH0
GPIO37
ADC1_CH1
BTN_C BTN_C --- BTN_A SW_Up SW_Up BTN_A --- --- GPIO37
ADC1_CH1
GPIO38
ADC1_CH2
BTN_B BTN_B M-Bus
SPI_MISO
PAD SW_Press SW_Press BTN_B --- --- GPIO38
ADC1_CH2
GPIO39
ADC1_CH3
BTN_A BTN_A TP_INT BTN_B SW_Down SW_Down BTN_C BTN BTN GPIO39
ADC1_CH3
M5Stack
BASIC
GRAY
M5Stack
GO/FIRE
M5Stack
Core2
Tough
M5Stick
C/CPlus
M5Stack
CoreInk
M5Paper M5Station M5ATOM
Lite/Matrix
ECHO/U
PSRAM
M5STAMP
PICO

ESP32C3 GPIO list

M5Stamp
C3
M5Stamp
C3U
GPIO 0 PORT.A
I2C0_SCL
PORT.A
I2C_SCL
GPIO 1 PORT.A
I2C0_SDA
PORT.A
I2C_SDA
GPIO 2 RGB LED RGB LED
GPIO 3 BTN_A Bus
GPIO 4 Bus Bus
GPIO 5 Bus Bus
GPIO 6 Bus Bus
GPIO 7 Bus Bus
GPIO 8 Bus Bus
GPIO 9 --- BTN_A
GPIO10 Bus Bus
GPIO18 PORT.U
D-
USB
PORT.U
D-
GPIO19 PORT.U
D+
USB
PORT.U
D+
GPIO20 USB
Serial
Bus
GPIO21 USB
Serial
Bus
M5Stamp
C3
M5Stamp
C3U

ESP32S3 GPIO list

M5Stack
CoreS3
M5ATOMS3
/ S3Lite
M5ATOMS3U
GPIO 0 M-Bus
SPK_LRCK
--- --- GPIO 0
GPIO 1 PORT.A
I2C0_SCL
PORT.A
I2C0_SCL
PORT.A
I2C0_SCL
GPIO 1
GPIO 2 PORT.A
I2C0_SDA
PORT.A
I2C0_SDA
PORT.A
I2C0_SDA
GPIO 2
GPIO 3 LCD_CS vdd3v3 vdd3v3 GPIO 3
GPIO 4 TF_CS InfraRed --- GPIO 4
GPIO 5 M-Bus Bus --- GPIO 5
GPIO 6 M-Bus Bus --- GPIO 6
GPIO 7 M-Bus Bus --- GPIO 7
GPIO 8 M-Bus
PORT.B
Bus --- GPIO 8
GPIO 9 M-Bus
PORT.B
--- --- GPIO 9
GPIO10 M-Bus --- --- GPIO10
GPIO11 I2C1_SCL --- --- GPIO11
GPIO12 I2C1_SDA --- InfraRed GPIO12
GPIO13 M-Bus
SPK_D
--- --- GPIO13
GPIO14 M-Bus
MIC_IN
--- Bus GPIO14
GPIO15 CAM_D6 LCD_CS --- GPIO15
GPIO16 CAM_D7 LCD_BL --- GPIO16
GPIO17 M-Bus
PORT.C
LCD_SCLK Bus GPIO17
GPIO18 M-Bus
PORT.C
--- --- GPIO18
GPIO19 USB
D--
USB
D--
USB
D--
GPIO19
GPIO20 USB
D++
USB
D++
USB
D++
GPIO20
GPIO21 I2C_INT LCD_MOSI --- GPIO21
GPIO33 SPK_WCK LCD_DC --- GPIO33
GPIO34 SPK_BCK LCD_RST --- GPIO34
GPIO35 M-Bus
SPI_MISO
LCD DC
RGB LED RGB LED GPIO35
GPIO36 M-Bus
SPI_SCLK
--- --- GPIO36
GPIO37 M-Bus
SPI_MOSI
--- --- GPIO37
GPIO38 CAM_HREF Bus
I2C1_SDA
PDM_DAT GPIO38
GPIO39 CAM_D2 Bus
I2C1_SCL
PDM_CLK GPIO39
GPIO40 CAM_D3 --- Bus GPIO40
GPIO41 CAM_D4 BTN_A BTN_A GPIO41
GPIO42 CAM_D5 --- Bus GPIO42
GPIO43 M-Bus
SerialTX
--- --- GPIO43
GPIO44 M-Bus
SerialRX
--- --- GPIO44
GPIO45 CAM_PCLK --- --- GPIO45
GPIO46 CAM_VSYNC --- --- GPIO46
GPIO47 CAM_D9 --- --- GPIO47
GPIO48 CAM_D8 --- --- GPIO48
M5Stack
CoreS3
M5ATOMS3
/ S3Lite
M5ATOMS3U

AXP192 IO list

M5Stack
Core2
M5Stack
Tough
M5Stick
C
M5Stick
CPlus
M5Station
GPIO0
LDO0
BUS PW EN BUS PW EN MIC VCC MIC VCC PortA1.A2 EN GPIO0
LDO0
GPIO1 SYS LED TP RST --- --- PortB1 EN GPIO1
GPIO2 SPK EN SPK EN --- --- PortB2 EN GPIO2
GPIO3 --- --- --- --- PortC1 EN GPIO3
GPIO4 LCD RST
TP RST
LCD RST --- --- PortC2 EN GPIO4
EXTEN PORT 5V EN PORT 5V EN PORT 5V EN PORT 5V EN PORT 5V EN EXTEN
BACKUP RTC BAT RTC BAT RTC BAT RTC BAT --- BACKUP
LDO1 RTC VDD RTC VDD RTC VDD RTC VDD RTC VDD LDO1
LDO2 LCD PW
Periph PW
LCD PW
Periph PW
LCD BL LCD BL --- LDO2
LDO3 VIB MOTOR LCD BL LCD PW LCD PW LCD BL LDO3
DCDC1 ESP32 VDD ESP32 VDD ESP32 VDD ESP32 VDD ESP32 VDD DCDC1
DCDC2 --- --- --- --- --- DCDC2
DCDC3 LCD BL --- --- --- --- DCDC3

PinMap

M5Stack
BASIC/GRAY
GO/FIRE
FACES II
M5Stack
Core2
Core2AWS
TOUGH
M5Stack
CoreS3
Bus
M-Bus

M-Bus

M-Bus
β€» HPWR=not connected to the ESP32. Used by modules capable of supplying 12V power.
M5Stack
BASIC/GRAY
GO/FIRE
FACES II
M5Stack
Core2
Core2AWS
TOUGH
M5Stack
CoreS3
M5Paper M5Station
PortA
PortA

PortA

PortA

PortA

PortA
PortB
PortB

PortB

PortB

PortB

PortB1

PortB2
PortC
PortC

PortC

PortC

PortC

PortC1

PortC2
PortD
PortD

PortD
PortE
PortE

PortE / 485
TOUGH485:12V
M5Stick
C
M5Stick
C Plus
M5Stack
CoreInk
M5Stamp
PICO
M5Stamp
C3
M5Stamp
C3U
PortA
HAT
Bus
MI-Bus
ATOM
Lite
ATOM
Matrix
ATOM
ECHO
ATOM
PSRAM
ATOM
U
PortA
Bus
ATOMS3
/S3Lite
PortA
Bus

SPI device

M5Stack
BASIC
GRAY
GO/FIRE
M5Stack
Core2
Tough
M5Stick
C
M5Stick
CPlus
M5Stack
CoreInk
M5Paper
Display ILI9342C
320Γ—240
CS:G14
ILI9342C
320Γ—240
CS:G5
ST7735S
80Γ—160
CS:G5
ST7789V2
135Γ—240
CS:G5
GDEW0154M09
200Γ—200
CS:G9
IT8951
960Γ—540
CS:G15
Display
TF Card CS:4 CS:4 --- --- --- CS:4 TF Card

I2C device

M5Stack
BASIC/GRAY
GO/FIRE
M5Stack
Core2
M5Stack
Tough
M5Stick
C
CPlus
M5Stack
CoreInk
M5Paper ATOM
Matrix
M5Station
Touch
Panel
--- FT6336U
38h
CHSC6540
2Eh
--- --- GT911
14h or 5Dh
--- --- Touch
Panel
RTC --- BM8563
51h
BM8563
51h
BM8563
51h
BM8563
51h
BM8563
51h
--- BM8563
51h
RTC
Power
Manage
IP5306
75h
AXP192
34h
AXP192
34h
AXP192
34h
--- --- --- AXP192
34h
Power
Manage
IMU MPU6886
68h
MPU6886
68h (Ext)
--- MPU6886
68h
--- --- MPU6886
68h
MPU6886
68h (opt)
IMU
IMU
(old lot)
SH200Q
6Ch
--- --- SH200Q
6Ch
--- --- --- --- IMU
(old lot)
ENV --- --- --- --- --- SHT30
44h
--- --- ENV
EEPROM --- --- --- --- --- FM24C02
50h
--- --- EEPROM
Current
Voltage
Monitor
--- --- --- --- --- --- --- INA3221
40h/41h
(opt)
Current
Voltage
Monitor

More Repositories

1

M5Stack

M5Stack Arduino Library
C
1,059
star
2

M5StickC

M5StickC Arduino Library
C
415
star
3

M5StickC-Plus

M5StickCPlus Arduino Library
C
364
star
4

M5-ProductExampleCodes

All example codes of products supplied by M5Stack have been collected in this reposity.
C
304
star
5

M5Core2

M5Core2 Arduino Library
C
264
star
6

M5Atom

M5Stack Atom Arduino Library
C++
227
star
7

m5-docs

The URL of M5Stack Official Documents:
JavaScript
214
star
8

M5Cardputer-UserDemo

M5Cardputer user demo for hardware evaluation.
C
186
star
9

M5Stack-Camera

Base espressif esp32-camera
C
185
star
10

M5Cardputer

C++
181
star
11

M5EPD

M5Paper Arduino Library
C
166
star
12

M5Cloud

Micropython Web IDE beta version
Python
143
star
13

Core2-for-AWS-IoT-Kit

Accompanying code for use with AWS IoT Kit content. Works with PlatformIO and ESP-IDF v4.2.
C
127
star
14

M5-Schematic

Most of the schematics of M5Stack boards
Shell
119
star
15

M5GFX

Graphics library for M5Stack series
C
110
star
16

M5Paper_FactoryTest

C
89
star
17

M5Stack-nesemu

forked from https://github.com/espressif/esp32-nesemu
C
68
star
18

M5CoreS3

M5CoreS3 Arduino Library
C++
67
star
19

M5StickCPlus2

C++
65
star
20

M5_Hardware

M5Stack hardware related documents, etc.
65
star
21

M5Dial

C++
63
star
22

M5AtomS3

C++
63
star
23

M5Dial-UserDemo

M5Dial user demo for hardware evaluation.
C
43
star
24

uiflow-micropython

uiflow micropython project
Python
41
star
25

ATOM-ECHO

35
star
26

TimerCam-arduino

TimerCam Arduino Library
C
35
star
27

M5StampFly

C
32
star
28

M5GO

Python
31
star
29

M5Core-Ink

M5Stack CoreInk Arduino Library
C++
31
star
30

FACES-Firmware

Firmware for 3 keyboards(QWERTY, GameBoy, Calculator). They are based on MEGA328 chip.
C++
31
star
31

M5Stack-IDF

M5Stack Arduino on ESP-IDF project template
C++
30
star
32

M5Stack-platformio

M5Stack PlatformIO Project Examples
C++
30
star
33

M5StickC-Plus-TLite-FW

M5StickT-Lite internal firmware (M5StickC-Plus + MLX90640 HAT)
C++
27
star
34

M5StickC-IDF

EDP32 IDF Library for M5stickc
C
24
star
35

M5Core2_Weather_Dashboard

M5Core2 Weather Dashboard based on LVGL.
C
24
star
36

M5Unit-ENV

Contains M5Stack-UNIT ENV series related case programs.ENV is an environmental sensor with integrated SHT30 and QMP6988 internally to detect temperature, humidity, and atmospheric pressure data.
C++
22
star
37

STAMP-PICO

C++
20
star
38

M5EPD_Todo

C
20
star
39

M5PoECAM

C++
19
star
40

M5Unit-UHF-RFID

Contains M5Stack-UNIT UHF RFID series related case programs
C++
19
star
41

lv_m5_emulator

Running the M5Stack LVGL device emulator via PlatformIO, support V8 & V9
C
19
star
42

ATOM-PRINTER

M5Stack ATOM PRINTER firmware and examples
C++
18
star
43

M5EPD_Calculator

C
18
star
44

Applications-LidarBot

C
18
star
45

STAMP-C3

C
18
star
46

M5Bala

M5Stack balance car
Python
17
star
47

M5StickCPlus2-UserDemo

M5StickCPlus2 user demo for hardware evaluation.
C
16
star
48

M5CoreS3-Esphome

C
16
star
49

CoreS3-UserDemo

CoreS3 user demo for hardware evaluation.
C
14
star
50

M5Tough

M5Stack Tough Arduino Library
C
14
star
51

M5Tools

C
14
star
52

M5_Camera_Examples

M5 camera series product examples.
C
14
star
53

M5NanoC6

C++
14
star
54

M5Module-DMX512

13
star
55

UnitV2Framework

C
13
star
56

M5AtomU

12
star
57

TimerCam-idf

TimerCam idf example
C
12
star
58

M5Stack_Linux_Libs

C
12
star
59

FontCreator

GFX Font Creator support for unicode
C
11
star
60

STAMP-S3

11
star
61

AirQUserDemo

HTML
11
star
62

M5Stack-Firmware

A platform to share your firmware of M5Stack
10
star
63

azure_iothub_arduino_lib_esp32

This repository is deprecated, please use https://github.com/VSChina/ESP32_AzureIoT_Arduino
C
10
star
64

M5Unit-Synth

C++
10
star
65

M5-espnow

This library is about espnow
C++
9
star
66

m5-hzk16

This is a routine that supports Chinese display
C
9
star
67

m5stack_devkit

m5stack esp-idf example
C
8
star
68

Vfunction

C++
7
star
69

M5EPD_TTFExample

C
7
star
70

M5-LoRaWAN

C++
7
star
71

M5-RoverC

Contains the driver of the M5Stack RoverC series to realize the movement of the RoverC trolley and the control of the steering gear.
C++
7
star
72

UIFlowLessons

Python
7
star
73

M5_CH55x

C
7
star
74

m5stack-linux-dtoverlays

Device Tree Overlays
C
7
star
75

M5Unit-LCD-Internal-FW

C++
7
star
76

Atom-JoyStick

C++
7
star
77

stepmotor_module

GRBL I2C communication
C++
7
star
78

Core2forAWS-MicroPython

M5Stack Core2 for AWS IoT Kit MicroPython repo with examples for connecting to AWS IoT and using device features.
C
7
star
79

UnitCamS3-UserDemo

UnitCamS3 user demo for hardware evaluation.
C++
7
star
80

Bases-Node

Source Code and Docs about the Node Module designed by M5Stack
C++
6
star
81

M5-StickT

C
6
star
82

M5Unit-KMeter

Contains case programs of M5Stack UNIT KMeter.
C++
6
star
83

ATOM_DTU_LoRaWAN

C
6
star
84

M5Station

C
6
star
85

ATOM_DTU_NB

C
6
star
86

M5Unit-Sonic

Contains case programs of M5Stack UNIT SONIC series, RCWL-9620 I2C version and GPIO version.
C++
6
star
87

M5Unit-Roller

C++
5
star
88

M5_SIM7080G

C++
5
star
89

M5Unit-8Encoder

C++
5
star
90

MagicWand

IMU sensor apply to Motion capture
C++
5
star
91

M5Unit-EXTIO2

Contains case programs of M5Stack UNIT EXT.IO2.
C++
5
star
92

M5_EzData

An IoT cloud data storage service provided by M5Stack
C++
5
star
93

Applications-cam

C
5
star
94

M5-ADS1115

Contains M5Stack UNIT Ameter & Vmeter related case programs.
C++
5
star
95

VAMeter-Firmware

M5-VAMeter firmware
C
5
star
96

M5Unit-Miniscale

C++
5
star
97

M5DinMeter-UserDemo

M5DinMeter user demo for hardware evaluation.
C
5
star
98

M5Stack-Fritzing

A Fritzing parts library for M5Stack Products
4
star
99

M5EPD_OnlineImage_FixUrl

C
4
star
100

M5Capsule

C++
4
star