Skip to content

Commit c821531

Browse files
Add M5Stack-ATOM Board (#3883)
* Add M5Stack-ATOM Board * Add M5Stack-ATOM Board * Add M5Stack-ATOM Board Co-authored-by: Me No Dev <[email protected]>
1 parent 4d118b3 commit c821531

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

Diff for: boards.txt

+61
Original file line numberDiff line numberDiff line change
@@ -2491,6 +2491,67 @@ m5stick-c.menu.DebugLevel.debug.build.code_debug=4
24912491
m5stick-c.menu.DebugLevel.verbose=Verbose
24922492
m5stick-c.menu.DebugLevel.verbose.build.code_debug=5
24932493

2494+
##############################################################
2495+
2496+
m5stack-atom.name=M5Stack-ATOM
2497+
2498+
m5stack-atom.upload.tool=esptool_py
2499+
m5stack-atom.upload.maximum_size=1310720
2500+
m5stack-atom.upload.maximum_data_size=327680
2501+
m5stack-atom.upload.wait_for_upload_port=true
2502+
2503+
m5stack-atom.serial.disableDTR=true
2504+
m5stack-atom.serial.disableRTS=true
2505+
2506+
m5stack-atom.build.mcu=esp32
2507+
m5stack-atom.build.core=esp32
2508+
m5stack-atom.build.variant=m5stack_atom
2509+
m5stack-atom.build.board=M5Stack_ATOM
2510+
2511+
m5stack-atom.build.f_cpu=240000000L
2512+
m5stack-atom.build.flash_size=4MB
2513+
m5stack-atom.build.flash_freq=80m
2514+
m5stack-atom.build.flash_mode=dio
2515+
m5stack-atom.build.boot=dio
2516+
m5stack-atom.build.partitions=default
2517+
m5stack-atom.build.defines=
2518+
2519+
m5stack-atom.menu.PartitionScheme.default=Default
2520+
m5stack-atom.menu.PartitionScheme.default.build.partitions=default
2521+
m5stack-atom.menu.PartitionScheme.no_ota=No OTA (Large APP)
2522+
m5stack-atom.menu.PartitionScheme.no_ota.build.partitions=no_ota
2523+
m5stack-atom.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
2524+
m5stack-atom.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
2525+
m5stack-atom.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
2526+
m5stack-atom.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
2527+
2528+
2529+
m5stack-atom.menu.UploadSpeed.1500000=1500000
2530+
m5stack-atom.menu.UploadSpeed.1500000.upload.speed=1500000
2531+
m5stack-atom.menu.UploadSpeed.750000=750000
2532+
m5stack-atom.menu.UploadSpeed.750000.upload.speed=750000
2533+
m5stack-atom.menu.UploadSpeed.500000=500000
2534+
m5stack-atom.menu.UploadSpeed.500000.upload.speed=500000
2535+
m5stack-atom.menu.UploadSpeed.250000=250000
2536+
m5stack-atom.menu.UploadSpeed.250000.upload.speed=250000
2537+
m5stack-atom.menu.UploadSpeed.115200=115200
2538+
m5stack-atom.menu.UploadSpeed.115200.upload.speed=115200
2539+
2540+
2541+
2542+
m5stack-atom.menu.DebugLevel.none=None
2543+
m5stack-atom.menu.DebugLevel.none.build.code_debug=0
2544+
m5stack-atom.menu.DebugLevel.error=Error
2545+
m5stack-atom.menu.DebugLevel.error.build.code_debug=1
2546+
m5stack-atom.menu.DebugLevel.warn=Warn
2547+
m5stack-atom.menu.DebugLevel.warn.build.code_debug=2
2548+
m5stack-atom.menu.DebugLevel.info=Info
2549+
m5stack-atom.menu.DebugLevel.info.build.code_debug=3
2550+
m5stack-atom.menu.DebugLevel.debug=Debug
2551+
m5stack-atom.menu.DebugLevel.debug.build.code_debug=4
2552+
m5stack-atom.menu.DebugLevel.verbose=Verbose
2553+
m5stack-atom.menu.DebugLevel.verbose.build.code_debug=5
2554+
24942555

24952556
##############################################################
24962557

Diff for: variants/m5stack_atom/pins_arduino.h

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 40
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 SDA = 26;
18+
static const uint8_t SCL = 32;
19+
20+
21+
static const uint8_t G12 = 12;
22+
static const uint8_t G19 = 19;
23+
static const uint8_t G22 = 21;
24+
static const uint8_t G22 = 22;
25+
static const uint8_t G23 = 23;
26+
static const uint8_t G25 = 25;
27+
static const uint8_t G26 = 26;
28+
static const uint8_t G27 = 27;
29+
static const uint8_t G32 = 32;
30+
static const uint8_t G33 = 33;
31+
static const uint8_t G39 = 39;
32+
33+
static const uint8_t G9 = 9;
34+
static const uint8_t G10 = 10;
35+
static const uint8_t G37 = 37;
36+
static const uint8_t G36 = 36;
37+
static const uint8_t G0 = 0;
38+
39+
static const uint8_t DAC1 = 25;
40+
static const uint8_t DAC2 = 26;
41+
42+
static const uint8_t ADC1 = 35;
43+
static const uint8_t ADC2 = 36;
44+
45+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)