mirror of
https://github.com/BruceDevices/firmware.git
synced 2026-03-13 10:12:21 +08:00
294 lines
8.5 KiB
INI
294 lines
8.5 KiB
INI
; 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 =
|
|
;m5stack-cardputer
|
|
;m5stack-sticks3
|
|
m5stack-cplus2
|
|
;m5stack-cplus1_1
|
|
;LAUNCHER_m5stack-cplus1_1
|
|
;m5stack-core2
|
|
;m5stack-core16mb
|
|
;m5stack-core4mb
|
|
;m5stack-cores3
|
|
;esp32-s3-devkitc-1
|
|
;CYD-2432S028
|
|
;CYD-2USB
|
|
;CYD-2432W328C
|
|
;CYD-2432W328C_2
|
|
;CYD-2432W328R-or-S024R
|
|
;CYD-3248S035R
|
|
;CYD-3248S035C
|
|
;LAUNCHER_CYD-2432W328R-or-S024R
|
|
;LAUNCHER_CYD-2432S028
|
|
;LAUNCHER_CYD-2USB
|
|
;LAUNCHER_CYD-2432W328C
|
|
;LAUNCHER_CYD-3248S035R
|
|
;LAUNCHER_CYD-3248S035C
|
|
;lilygo-t-embed-cc1101
|
|
;lilygo-t-embed
|
|
;lilygo-t-deck
|
|
;lilygo-t-watch-s3
|
|
;lilygo-t-deck-pro # This is T-Deck Plus!!
|
|
;lilygo-t-display-s3
|
|
;lilygo-t-display-s3-touch
|
|
;lilygo-t-display-s3-mmc
|
|
;lilygo-t-display-s3-touch-mmc
|
|
;lilygo-t-display-S3-pro
|
|
;lilygo-t-display-ttgo
|
|
;lilygo-t-hmi
|
|
;lilygo-t-lora-pager
|
|
;smoochiee-board
|
|
;xk404
|
|
;reaper
|
|
;Phantom_S024R
|
|
;LAUNCHER_Phantom_S024R
|
|
;Marauder-Mini
|
|
;LAUNCHER_Marauder-Mini
|
|
;Awok-Mini
|
|
;Marauder-v7
|
|
;LAUNCHER_Marauder-v7
|
|
;Marauder-V4-V6
|
|
;Marauder-v61
|
|
;LAUNCHER_Marauder-V4-V6
|
|
;LAUNCHER_Marauder-v61
|
|
;Awok-Touch"
|
|
;LAUNCHER_WaveSentry-R1
|
|
;WaveSentry-R1
|
|
;esp32-c5-tft
|
|
;esp32-c5
|
|
;ES3C28P
|
|
|
|
;uncomment to not use global dirs to avoid possible conflicts
|
|
;platforms_dir = .pio/platforms
|
|
;packages_dir = .pio/packages
|
|
build_cache_dir = .pio/buildcache
|
|
cache_dir = .pio/cache
|
|
boards_dir = boards/_boards_json
|
|
|
|
extra_configs =
|
|
boards/*.ini
|
|
boards/*/*.ini
|
|
|
|
[env]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.36/platform-espressif32.zip ; Arduino 3.3.6
|
|
;https://github.com/pioarduino/platform-espressif32/releases/download/55.03.34/platform-espressif32.zip ; Arduino 3.3.4
|
|
;https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip ; Last Version
|
|
platform_packages =
|
|
framework-arduinoespressif32-libs @ https://github.com/bmorcelli/esp32-arduino-lib-builder/releases/download/idf-release_v5.5/bruce_esp32-arduino-libs-20260123-153546.zip ; Arduino 3.3.6
|
|
;framework-arduinoespressif32-libs @ https://github.com/bmorcelli/esp32-arduino-lib-builder/releases/download/idf-release_v5.5/bruce_esp32-arduino-libs-20251205-131242.zip ; Arduino 3.3.4
|
|
;framework-arduinoespressif32-libs @ https://github.com/bmorcelli/esp32-arduino-lib-builder/releases/download/idf-release_v5.5/esp32-arduino-libs-20250919-170356.zip ; Arduino 3.3.1
|
|
|
|
monitor_filters = esp32_exception_decoder, send_on_enter, colorize
|
|
framework = arduino
|
|
board_build.variants_dir = boards
|
|
board_build.filesystem = littlefs
|
|
build_src_flags =
|
|
; warnings:
|
|
-Wall
|
|
-Wclobbered
|
|
-Wempty-body
|
|
-Wignored-qualifiers
|
|
; -Wmissing-field-initializers
|
|
; -Wsign-compare ; commented because it produces too much warnings, some of them are imposible to fix due to external deps
|
|
-Woverloaded-virtual=0
|
|
-Wtype-limits
|
|
-Wno-unused-label
|
|
-Wno-comment
|
|
-Wno-unused-variable
|
|
-Wno-narrowing
|
|
; warnings end
|
|
|
|
; build_unflags = -Os ; uncomment this line and "-O2" for speed optimisations, but bigger size
|
|
|
|
; Specify the path to your 32bits GCC compiler here, if it was not detected
|
|
;mqjs_host_cc = C:/msys64/mingw32/bin/gcc.exe
|
|
|
|
build_src_filter =
|
|
+<*>
|
|
-<.git/>
|
|
-<.svn/>
|
|
-<modules/bjs_interpreter/mqjs_stdlib.c>
|
|
|
|
build_flags =
|
|
-DBRUCE_VERSION='"dev"'
|
|
-DEEPROMSIZE=128
|
|
-DLH=8
|
|
-DLW=6
|
|
-Os
|
|
-Wl,--print-memory-usage
|
|
-Wl,--gc-sections
|
|
-DGIT_COMMIT_HASH='"Homebrew"'
|
|
-DFASTLED_RMT_BUILTIN_DRIVER=1 ; https://github.com/FastLED/FastLED/blob/67436be11fc3b7be611cdf9011f31c4f76817741/src/platforms/esp/32/rmt_4/idf4_clockless_rmt_esp32.h#L25-L33
|
|
; This setting let RF Spectrum to work with LED interface with FastLED on ESP32-S3
|
|
|
|
-D CONFIG_ASYNC_TCP_STACK_SIZE=4096 ; Reduces stack size for Async TCP to save memory
|
|
-DCONFIG_ASYNC_TCP_RUNNING_CORE=1 ;
|
|
-DCONFIG_ASYNC_TCP_USE_WDT=0 ; Disables the Watchdog timer on Async TCP, to avoid restartings during file uploads
|
|
-DGEN_MQJS_HEADERS ; Enable generation of mquickjs headers
|
|
; mbedtls settings for crypto operations (WhisperPair/audio exploits)
|
|
-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"
|
|
-DCONFIG_MBEDTLS_ECDH_C=1
|
|
-DCONFIG_MBEDTLS_AES_C=1
|
|
-DCONFIG_MBEDTLS_CTR_DRBG_C=1
|
|
; Additional mbedtls flags that could be useful:
|
|
;-DCONFIG_MBEDTLS_ECP_C=1
|
|
;-DCONFIG_MBEDTLS_SHA256_C=1
|
|
;-DCONFIG_MBEDTLS_SHA512_C=1
|
|
;-DCONFIG_MBEDTLS_HKDF_C=1
|
|
;-DCONFIG_MBEDTLS_GCM_C=1
|
|
|
|
extra_scripts =
|
|
pre:patch.py
|
|
pre:pre_build_current_year.py
|
|
pre:gen_mqjs_headers.py
|
|
post:build.py
|
|
|
|
lib_deps =
|
|
https://github.com/sayacom/WireGuard-ESP32-Arduino#feature/esp-netif
|
|
;WireGuard-ESP32
|
|
https://github.com/bmorcelli/IRremoteESP8266
|
|
;IRremoteESP8266
|
|
paulstoffregen/Time@1.6.1
|
|
LibSSH-ESP32
|
|
Adafruit BusIO=https://github.com/emericklaw/Adafruit-BusIO_Bruce@1.17.2-bruce.1
|
|
Adafruit PN532=https://github.com/emericklaw/Adafruit-PN532_Bruce@1.3.3-bruce.1
|
|
https://github.com/huckor/BER-TLV.git
|
|
https://github.com/rennancockles/Arduino_MFRC522v2.git
|
|
https://github.com/bmorcelli/ESP-ChameleonUltra
|
|
https://github.com/bmorcelli/ESP-Amiibolink
|
|
https://github.com/rennancockles/SimpleCLI
|
|
https://github.com/whywilson/ESP-PN532BLE
|
|
https://github.com/whywilson/ESP-PN532-UART
|
|
https://github.com/whywilson/ESP-PN532Killer
|
|
NTPClient@3.2.1
|
|
ESP32Time@2.0.6
|
|
FFat
|
|
bblanchon/ArduinoJson
|
|
https://github.com/bmorcelli/rc-switch
|
|
ESP8266Audio@^2.4.1
|
|
earlephilhower/ESP8266SAM@^1.1.0
|
|
mikalhart/TinyGPSPlus
|
|
tinyu-zhao/FFT@^0.0.1
|
|
h2zero/NimBLE-Arduino@^2.3.9
|
|
nrf24/RF24 @ 1.4.11
|
|
Adafruit Si4713 Library@1.2.3
|
|
Bodmer/JPEGDecoder
|
|
https://github.com/bmorcelli/SmartRC-CC1101-Driver-Lib/
|
|
mquickjs=https://github.com/BruceDevices/mquickjs#0.0.6
|
|
;paulstoffregen/OneWire@^2.3.8
|
|
https://github.com/bmorcelli/OneWire#patch-1
|
|
;jackjansen/esp32_idf5_https_server_compat
|
|
https://github.com/bmorcelli/ESP32-PsRamFS#patch-1
|
|
;chegewara/EspTinyUSB
|
|
bitbank2/AnimatedGIF
|
|
bitbank2/PNGdec @ ^1.1.2
|
|
ESP32Async/ESPAsyncWebServer
|
|
fastled/FastLED @^3.10.3
|
|
jgromes/RadioLib @ ^7.4.0
|
|
|
|
monitor_speed = 115200
|
|
|
|
|
|
|
|
[env_light]
|
|
extends = env
|
|
build_flags =
|
|
-Os
|
|
-DCORE_DEBUG_LEVEL=0
|
|
-DCONFIG_ESP32_JTAG_SUPPORT_DISABLE=1
|
|
-DLITE_VERSION=1
|
|
-D_IR_ENABLE_DEFAULT_=false
|
|
-DDECODE_NEC=true
|
|
-DSEND_NEC=true
|
|
-DDECODE_SAMSUNG=true
|
|
-DSEND_SAMSUNG=true
|
|
-DDECODE_RC5=true
|
|
-DSEND_RC5=true
|
|
-DDECODE_RC6=true
|
|
-DSEND_RC6=true
|
|
-DDECODE_LG=true
|
|
-DSEND_LG=true
|
|
-DDECODE_SONY=true
|
|
-DSEND_SONY=true
|
|
-DSEND_PANASONIC=true
|
|
-DDECODE_PANASONIC=true
|
|
-DSEND_RAW=true
|
|
|
|
lib_deps =
|
|
;https://github.com/sayacom/WireGuard-ESP32-Arduino#feature/esp-netif
|
|
;WireGuard-ESP32
|
|
https://github.com/BorisKofman/IRremoteESP8266#Espressif-version-3
|
|
;IRremoteESP8266
|
|
paulstoffregen/Time@1.6.1
|
|
;LibSSH-ESP32
|
|
Adafruit BusIO=https://github.com/emericklaw/Adafruit-BusIO_Bruce@1.17.2-bruce.1
|
|
Adafruit PN532=https://github.com/emericklaw/Adafruit-PN532_Bruce@1.3.3-bruce.1
|
|
https://github.com/rennancockles/Arduino_MFRC522v2.git
|
|
https://github.com/bmorcelli/ESP-ChameleonUltra
|
|
;https://github.com/bmorcelli/ESP-Amiibolink
|
|
https://github.com/rennancockles/SimpleCLI
|
|
;https://github.com/bmorcelli/ESP-PN532BLE
|
|
;https://github.com/whywilson/ESP-PN532-UART@^0.0.2
|
|
;https://github.com/whywilson/ESP-PN532Killer#079790e
|
|
NTPClient@3.2.1
|
|
ESP32Time@2.0.6
|
|
FFat
|
|
bblanchon/ArduinoJson@7.4.2
|
|
https://github.com/bmorcelli/rc-switch
|
|
;ESP8266Audio@^2.4.1
|
|
;earlephilhower/ESP8266SAM@^1.1.0
|
|
mikalhart/TinyGPSPlus@1.1.0
|
|
tinyu-zhao/FFT@0.0.1
|
|
h2zero/NimBLE-Arduino@2.3.7
|
|
nrf24/RF24 @ 1.4.11
|
|
;Adafruit Si4713 Library@1.2.3
|
|
Bodmer/JPEGDecoder
|
|
https://github.com/bmorcelli/SmartRC-CC1101-Driver-Lib/
|
|
;mquickjs=https://github.com/BruceDevices/mquickjs#0.0.6
|
|
;paulstoffregen/OneWire@^2.3.8
|
|
;https://github.com/bmorcelli/OneWire#patch-1
|
|
;https://github.com/bmorcelli/ESP32-PsRamFS#patch-1
|
|
;bitbank2/AnimatedGIF
|
|
;bitbank2/PNGdec @ ^1.1.2
|
|
ESP32Async/AsyncTCP@3.4.10
|
|
ESP32Async/ESPAsyncWebServer@3.9.6
|
|
;https://github.com/bmorcelli/FastLED
|
|
|
|
[env_4mb]
|
|
extends = env
|
|
build_flags =
|
|
-Os
|
|
-DCORE_DEBUG_LEVEL=0
|
|
-DCONFIG_ESP32_JTAG_SUPPORT_DISABLE=1
|
|
# Restrict IR protocols to save Flash on 4mb devices
|
|
-D_IR_ENABLE_DEFAULT_=false
|
|
-DDECODE_NEC=true
|
|
-DSEND_NEC=true
|
|
-DDECODE_SAMSUNG=true
|
|
-DSEND_SAMSUNG=true
|
|
-DDECODE_RC5=true
|
|
-DSEND_RC5=true
|
|
-DDECODE_RC6=true
|
|
-DSEND_RC6=true
|
|
-DDECODE_LG=true
|
|
-DSEND_LG=true
|
|
-DDECODE_SONY=true
|
|
-DSEND_SONY=true
|
|
-DSEND_PANASONIC=true
|
|
-DDECODE_PANASONIC=true
|
|
-DSEND_RAW=true
|
|
|
|
lib_ignore =
|
|
FastLED
|
|
ESP8266Audio
|
|
ESP8266SAM
|