8000 Add "M5Stack-Core-ESP32" boards support · markEfive/arduino-esp32@1b3e8fa · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1b3e8fa

Browse files
M5StackJimmyLaime-no-dev
authored andcommitted
Add "M5Stack-Core-ESP32" boards support
1 parent e6ba0f6 commit 1b3e8fa

File tree

2 files changed

+121
-0
lines changed

2 files changed

+121
-0
lines changed

boards.txt

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,3 +909,69 @@ espino32.menu.UploadSpeed.460800.macosx=460800
909909
espino32.menu.UploadSpeed.460800.upload.speed=460800
910910
espino32.menu.UploadSpeed.512000.windows=512000
911911
espino32.menu.UploadSpeed.512000.upload.speed=512000
912+
91 10000 3+
##############################################################
914+
915+
m5stack-core-esp32.name=M5Stack-Core-ESP32
916+
917+
m5stack-core-esp32.upload.tool=esptool
918+
m5stack-core-esp32.upload.maximum_size=1310720
919+
m5stack-core-esp32.upload.maximum_data_size=294912
920+
m5stack-core-esp32.upload.wait_for_upload_port=true
921+
922+
m5stack-core-esp32.serial.disableDTR=true
923+
m5stack-core-esp32.serial.disableRTS=true
924+
925+
m5stack-core-esp32.build.mcu=esp32
926+
m5stack-core-esp32.build.core=esp32
927+
m5stack-core-esp32.build.variant=esp32
928+
m5stack-core-esp32.build.board=M5Stack-Core-ESP32
929+
930+
m5stack-core-esp32.build.f_cpu=240000000L
931+
m5stack-core-esp32.build.flash_size=4MB
932+
m5stack-core-esp32.build.flash_mode=dio
933+
m5stack-core-esp32.build.boot=bootloader
934+
935+
m5stack-core-esp32.menu.FlashMode.qio=QIO
936+
m5stack-core-esp32.menu.FlashMode.qio.build.flash_mode=dio
937+
m5stack-core-esp32.menu.FlashMode.qio.build.boot=bootloader_qio
938+
m5stack-core-esp32.menu.FlashMode.dio=DIO
939+
m5stack-core-esp32.menu.FlashMode.dio.build.flash_mode=dio
940+
m5stack-core-esp32.menu.FlashMode.qout=QOUT
941+
m5stack-core-esp32.menu.FlashMode.qout.build.flash_mode=dout
942+
m5stack-core-esp32.menu.FlashMode.qout.build.boot=bootloader_qio
943+
m5stack-core-esp32.menu.FlashMode.dout=DOUT
944+
m5stack-core-esp32.menu.FlashMode.dout.build.flash_mode=dout
945+
946+
m5stack-core-esp32.menu.FlashFreq.80=80MHz
947+
m5stack-core-esp32.menu.FlashFreq.80.build.flash_freq=80m
948+
m5stack-core-esp32.menu.FlashFreq.40=40MHz
949+
m5stack-core-esp32.menu.FlashFreq.40.build.flash_freq=40m
950+
951+
m5stack-core-esp32.menu.UploadSpeed.921600=921600
952+
m5stack-core-esp32.menu.UploadSpeed.921600.upload.speed=921600
953+
m5stack-core-esp32.menu.UploadSpeed.115200=115200
954+
m5stack-core-esp32.menu.UploadSpeed.115200.upload.speed=115200
955+
m5stack-core-esp32.menu.UploadSpeed.256000.windows=256000
956+
m5stack-core-esp32.menu.UploadSpeed.256000.upload.speed=256000
957+
m5stack-core-esp32.menu.UploadSpeed.230400.windows.upload.speed=256000
958+
m5stack-core-esp32.menu.UploadSpeed.230400=230400
959+
m5stack-core-esp32.menu.UploadSpeed.230400.upload.speed=230400
960+
m5stack-core-esp32.menu.UploadSpeed.460800.linux=460800
961+
m5stack-core-esp32.menu.UploadSpeed.460800.macosx=460800
962+
m5stack-core-esp32.menu.UploadSpeed.460800.upload.speed=460800
963+
m5stack-core-esp32.menu.UploadSpeed.512000.windows=512000
964+
m5stack-core-esp32.menu.UploadSpeed.512000.upload.speed=512000
965+
966+
m5stack-core-esp32.menu.DebugLevel.none=None
967+
m5stack-core-esp32.menu.DebugLevel.none.build.code_debug=0
968+
m5stack-core-esp32.menu.DebugLevel.error=Error
969+
m5stack-core-esp32.menu.DebugLevel.error.build.code_debug=1
970+
m5stack-core-esp32.menu.DebugLevel.warn=Warn
971+
m5stack-core-esp32.menu.DebugLevel.warn.build.code_debug=2
972+
m5stack-core-esp32.menu.DebugLevel.info=Info
973+
m5stack-core-esp32.menu.DebugLevel.info.build.code_debug=3
974+
m5stack-core-esp32.menu.DebugLevel.debug=Debug
975+
m5stack-core-esp32.menu.DebugLevel.debug.build.code_debug=4
976+
m5stack-core-esp32.menu.DebugLevel.verbose=Verbose
977+
m5stack-core-esp32.menu.DebugLevel.verbose.build.code_debug=5
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define EXTERNAL_NUM_INTERRUPTS 16
7+
#define NUM_DIGITAL_PINS 20
8+
#define NUM_ANALOG_INPUTS 16
9+
10+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#define digitalPinHasPWM(p) (p < 34)
13+
14+
static const uint8_t TX = 1;
15+
static const uint8_t RX = 3;
16+
17+
static const uint8_t TXD2 = 17;
18+
static const uint8_t RXD2 = 16;
19+
20+
static const uint8_t SDA = 21;
21+
static const uint8_t SCL = 22;
22+
23+
static const uint8_t SS = 5;
24+
static const uint8_t MOSI = 23;
25+
static const uint8_t MISO = 19;
26+
static const uint8_t SCK = 18;
27+
28+
static const uint8_t G23 = 23;
29+
static const uint8_t G19 = 19;
30+
static const uint8_t G18 = 18;
31+
static const uint8_t G3 = 3;
32+
static const uint8_t G16 = 16;
33+
static const uint8_t G21 = 21;
34+
static const uint8_t G2 = 2;
35+
static const uint8_t G12 = 12;
36+
static const uint8_t G15 = 15;
37+
static const uint8_t G35 = 35;
38+
static const uint8_t G36 = 36;
39+
static const uint8_t G25 = 25;
40+
static const uint8_t G26 = 26;
41+
static const uint8_t G1 = 1;
42+
static const uint8_t G17 = 17;
43+
static const uint8_t G22 = 22;
44+
static const uint8_t G5 = 5;
45+
static const uint8_t G13 = 13;
46+
static const uint8_t G0 = 0;
47+
static const uint8_t G34 = 34;
48+
49+
static const uint8_t DAC1 = 25;
50+
static const uint8_t DAC2 = 26;
51+
52+
static const uint8_t ADC1 = 35;
53+
static const uint8_t ADC2 = 36;
54+
55+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)
0