-
Notifications
You must be signed in to change notification settings - Fork 3
/
platformio.ini
120 lines (111 loc) · 3.44 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
; 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]
build_cache_dir = .pio/build_cache
name = fab-o-matic
[env]
platform = https://github.com/tasmota/platform-espressif32/releases/download/2024.11.31/platform-espressif32.zip
#platform =https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
framework = arduino
test_framework = unity
check_tool = clangtidy
check_flags = clangtidy: --checks=-*,cert-*,clang-analyzer-*,llvm-*,cppcoreguidelines-*,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-bounds-array-to-pointer-decay
monitor_speed = 115200
test_build_src = yes
monitor_filters = esp32_exception_decoder
colorize
lib_ldf_mode = deep
lib_deps = https://github.com/PBrunot/LiquidCrystal.git#use_const
https://github.com/bblanchon/ArduinoJson.git#v7.1.0
256dpi/MQTT
https://github.com/OSSLibraries/Arduino_MFRC522v2.git#2.0.5
Wire
adafruit/Adafruit NeoPixel@^1.12.3
https://github.com/tzapu/[email protected]
ArduinoOTA
build_unflags = -std=gnu++11 -fexceptions -fno-lto
build_flags = -std=gnu++2b
-flto=auto
-g3
-Os
-I conf
-Wno-deprecated-declarations
-Wno-attributes
-Wno-maybe-uninitialized
-D CORE_DEBUG_LEVEL=0
-D CONFIG_LOG_COLORS
build_src_flags = -Wformat=2
-Wformat-truncation
-Wall
-Wextra
-Wl,-Map,firmware.map,--cref
-Wstack-usage=2048
-D LOG_LOCAL_LEVEL=ESP_LOG_VERBOSE
-D FABOMATIC_BUILD="\"$PIOENV\""
debug_build_flags = ${env.build_flags}
-Og
-D DEBUG
-Wall
-Wextra
extra_scripts = pre:tools/git_version.py
post:tools/metrics_firmware.py
[hardware-base]
board = esp32-s3-devkitc-1
board_build.partitions = default.csv
board_upload.flash_size = 4MB
build_type = debug
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
build_flags = ${env.build_flags}
-D ARDUINO_USB_CDC_ON_BOOT
build_src_flags = ${env.build_src_flags}
-D MQTT_SIMULATION=false
-D RFID_SIMULATION=false
-D PINS_HARDWARE_REV0
-D DEBUG
[env:hardware-rev0-it_IT]
extends = hardware-base
build_src_flags = ${hardware-base.build_src_flags}
-D FABOMATIC_LANG_IT_IT
[env:hardware-rev0-en_US]
extends = hardware-base
build_src_flags = ${hardware-base.build_src_flags}
-D FABOMATIC_LANG_EN_US
[env:esp32-devboard]
board = esp32dev
build_type = release
build_src_flags = ${env.build_src_flags}
-D MQTT_SIMULATION=false
-D RFID_SIMULATION=false
-D PINS_ESP32
-D FABOMATIC_LANG_IT_IT
upload_protocol = espota
upload_port = 192.168.45.82
[env:wokwi]
board = esp32-s2-saola-1
lib_deps = ${env.lib_deps}
https://github.com/terrorsl/[email protected]
build_type = debug
build_src_flags = ${env.build_src_flags}
-D MQTT_SIMULATION=true
-D RFID_SIMULATION=true
-D PINS_WOKWI
-D FABOMATIC_LANG_EN_US
[env:wrover-kit-it_IT]
board = esp-wrover-kit
build_type = debug
debug_tool = ftdi
debug_init_break = break setup
build_src_flags = ${env.build_src_flags}
-D MQTT_SIMULATION=false
-D RFID_SIMULATION=true
-D PINS_ESP32_WROVERKIT
-D DEBUG
-D FABOMATIC_LANG_IT_IT