-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathplatformio.ini.example
125 lines (120 loc) · 3.58 KB
/
platformio.ini.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
; M5CoreS3 configuration
[env:m5stack-cores3]
platform = espressif32
board = esp32-s3-devkitc-1
;board_build.mcu = esp32-s3
;board_build.partitions = default_16MB.csv
;board_build.f_cpu = 240000000L
;board_build.f_flash = 80000000L
;board_build.flash_mode = dio
framework = arduino
build_flags =
-DESP32S3
-D ARDUINO_M5STACK_CoreS3
-D BOARD_M5STACK_CORES3
; -D RESET_SETTINGS
-D BOARD_HAS_PSRAM
-D CORE_DEBUG_LEVEL=0
-mfix-esp32-psram-cache-issue
-D COMMU_CS_PIN=6
-D COMMU_INT_PIN=13
-D SERIAL2_RX=13
-D SERIAL2_TX=14
lib_deps =
m5stack/M5CoreS3
m5stack/M5Unified
m5stack/M5GFX
mikalhart/TinyGPSPlus@^1.0.2
erropix/ESP32 AnalogWrite@^0.2.0
bblanchon/ArduinoJson@^6.17.2
Pedroalbuquerque/ESP32WebServer
https://github.com/switchdoclabs/SDL_Arduino_INA3221
https://github.com/coryjfowler/MCP_CAN_lib
https://github.com/nickn17/Solarlib
knolleary/PubSubClient@^2.8
;targets = upload
upload_protocol = esptool
upload_port = /dev/cu.usbmodem11301
monitor_port = /dev/cu.usbmodem11301
upload_speed = 1500000
monitor_speed = 115200
; M5Core2 v1.0 board configuration
[env:m5stack-core2-v1_0]
platform = espressif32
board = m5stack-core2
board_build.mcu = esp32
board_build.partitions = default_16MB.csv ;no_ota.csv
board_build.f_cpu = 240000000L ;240M(WiFi OK), 160M(WiFi OK), 80M(WiFi OK), 40M, 20M, 10M
board_build.f_flash = 80000000L ;80M, 40M
board_build.flash_mode = dio ;io, qout, dio, dout
lib_ldf_mode = deep
framework = arduino
build_flags =
-D ARDUINO_M5STACK_Core2
-DCORE_DEBUG_LEVEL=0 ;0:None, 1:Error, 2:Warn, 3:Info, 4:Debug, 5:Verbose
; -DARDUINO_RUNNING_CORE=1 ;0:Core0, 1:Core1(default)
; -DARDUINO_EVENT_RUNNING_CORE=1 ;0:Core0, 1:Core1(default)
-D BOARD_M5STACK_CORE2
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D COMMU_CS_PIN=27
-D COMMU_INT_PIN=2
-D SERIAL2_RX=13
-D SERIAL2_TX=14
lib_deps =
m5stack/M5Core2
mikalhart/TinyGPSPlus@^1.0.2
erropix/ESP32 AnalogWrite@^0.2.0
bblanchon/ArduinoJson@^6.17.2
Pedroalbuquerque/ESP32WebServer
https://github.com/switchdoclabs/SDL_Arduino_INA3221
https://github.com/coryjfowler/MCP_CAN_lib
https://github.com/nickn17/Solarlib
knolleary/PubSubClient@^2.8
;targets = upload
upload_protocol = esptool
upload_port = COM6
monitor_port = COM6
upload_speed = 1500000
monitor_speed = 115200
; M5Core2 v1.1 board configuration
[env:m5stack-core2-v1_1]
platform = espressif32
board = m5stack-core2
board_build.mcu = esp32
board_build.partitions = default_16MB.csv ;no_ota.csv
board_build.f_cpu = 240000000L ;240M(WiFi OK), 160M(WiFi OK), 80M(WiFi OK), 40M, 20M, 10M
board_build.f_flash = 80000000L ;80M, 40M
board_build.flash_mode = dio ;io, qout, dio, dout
lib_ldf_mode = deep
framework = arduino
build_flags =
-D M5STACK_CORE2
-D LGFX_AUTODETECT
-D ARDUINO_M5STACK_Core2
-DCORE_DEBUG_LEVEL=0 ;0:None, 1:Error, 2:Warn, 3:Info, 4:Debug, 5:Verbose
-D BOARD_M5STACK_CORE2
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D COMMU_CS_PIN=26
-D COMMU_INT_PIN=4
-D SERIAL2_RX=13
-D SERIAL2_TX=14
lib_deps =
m5stack/M5Core2
mikalhart/TinyGPSPlus@^1.0.2
erropix/ESP32 AnalogWrite@^0.2.0
bblanchon/ArduinoJson@^6.17.2
Pedroalbuquerque/ESP32WebServer
https://github.com/switchdoclabs/SDL_Arduino_INA3221
https://github.com/coryjfowler/MCP_CAN_lib
https://github.com/nickn17/Solarlib
knolleary/PubSubClient@^2.8
;targets = upload
upload_protocol = esptool
;upload_port = /dev/cu.usbserial-58640310361
;monitor_port = /dev/cu.usbserial-58640310361
upload_port = COM6
monitor_port = COM6
upload_speed = 1500000
monitor_speed = 115200