-
Notifications
You must be signed in to change notification settings - Fork 7
/
platformio.ini
100 lines (89 loc) · 2.33 KB
/
platformio.ini
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
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = doit, lolin
[env]
platform = espressif32
framework = arduino
monitor_speed = 115200
lib_deps =
arkhipenko/TaskScheduler@^3.2.2
h2zero/NimBLE-Arduino @ ^1.2.0
https://github.com/timurrrr/arduino-CAN
khoih.prog/ESP_DoubleResetDetector @ ^1.1.1
lib_ldf_mode = deep+
; board_build.f_flash = 80000000L
; board_build.flash_mode = qio
[env:doit]
board = esp32doit-devkit-v1
build_type = debug
build_flags =
-DLOG_LOCAL_LEVEL=ESP_LOG_INFO
-DCORE_DEBUG_LEVEL=3
-DLAZYWATCHDOG
monitor_port = /dev/cu.SLAB_USBtoUART
[env:doit_prod]
board = esp32doit-devkit-v1
build_flags =
-DLOG_LOCAL_LEVEL=ESP_LOG_NONE
-DCORE_DEBUG_LEVEL=0
monitor_port = /dev/cu.SLAB_USBtoUART
[env:doit_simulateCAN]
board = esp32doit-devkit-v1
build_type = debug
build_flags =
-DCORE_DEBUG_LEVEL=3
-DCAN_DATA_SIMULATOR_MODE
monitor_port = /dev/cu.SLAB_USBtoUART
[env:lolin]
board = lolin_d32_pro
build_type = debug
build_flags =
-DCORE_DEBUG_LEVEL=3
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DLAZYWATCHDOG
[env:lolin_simulateCAN]
board = lolin_d32_pro
build_type = debug
build_flags =
-DCORE_DEBUG_LEVEL=3
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DCAN_DATA_SIMULATOR_MODE
; pinout for wemos_d1_mini32 at https://github.com/r0oland/ESP32_mini_KiCad_Library
[env:wemos_d1_mini32]
board = wemos_d1_mini32
build_type = debug
build_flags =
-DCORE_DEBUG_LEVEL=3
monitor_port = /dev/cu.SLAB_USBtoUART
[env:wemos_d1_mini32_simulateCAN]
board = wemos_d1_mini32
build_type = debug
build_flags =
-DCORE_DEBUG_LEVEL=3
-DCAN_DATA_SIMULATOR_MODE
monitor_port = /dev/cu.SLAB_USBtoUART
[env:wemos_d1_mini32_prod]
board = wemos_d1_mini32
build_flags =
-DLOG_LOCAL_LEVEL=ESP_LOG_NONE
-DCORE_DEBUG_LEVEL=0
monitor_port = /dev/cu.SLAB_USBtoUART
upload_port = /dev/cu.SLAB_USBtoUART
[env:wemos_d1_mini32_ota]
board = wemos_d1_mini32
build_flags =
-DLOG_LOCAL_LEVEL=ESP_LOG_NONE
-DCORE_DEBUG_LEVEL=0
upload_protocol = espota
upload_port = ducan.local
monitor_port = /dev/cu.SLAB_USBtoUART