rf433gateway/platformio.ini

85 lines
2.9 KiB
INI
Raw Permalink Normal View History

2025-02-22 22:27:11 +00:00
; 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 = esp32_cc1101
default_envs = esp32c3_cdc_cc1101
;default_envs = rp2040
boards_dir = boards
[libraries]
arduinolog = https://github.com/1technophile/Arduino-Log.git#d13cd80
arduinojson =
ArduinoJson
; ArduinoJson @ 7.0.4
; ArduinoJson @ 6.21.5
; ArduinoJson @ 5.13.4 ; deprecated
rtl_433_ESP = shchuko/rtl_433_ESP
[env]
framework = arduino
monitor_filters = esp32_exception_decoder
;platform = espressif32@3.5.0
platform = espressif32@6.1.0
lib_ldf_mode = deep+
lib_deps =
sui77/rc-switch
${libraries.arduinolog}
${libraries.arduinojson}
${libraries.rtl_433_ESP}
[env:esp32c3_cdc_cc1101]
board = esp32-c3-devkitm-1
build_flags =
'-DCONFIG_ESP_CONSOLE_UART=1' ; settings for esp32c3 without uart
'-DARDUINO_USB_MODE=1'
'-DARDUINO_USB_CDC_ON_BOOT=1'
'-DLOG_LEVEL=LOG_LEVEL_TRACE'
; '-DONBOARD_LED=13' ; LED_D4
; *** rtl_433_ESP Options ***
; '-DRF_MODULE_FREQUENCY=915.00'
'-DOOK_MODULATION=true' ; False is FSK, True is OOK
; '-DRTL_DEBUG=4' ; rtl_433 verbose mode
; '-DRTL_VERBOSE=74' ; LaCrosse TX141-Bv2, TX141TH-Bv2, TX141-Bv3, TX141W, TX145wsdth sensor
; '-DRAW_SIGNAL_DEBUG=true' ; display raw received messages
; '-DMEMORY_DEBUG=true' ; display memory usage information
; '-DDEMOD_DEBUG=true' ; display signal debug info
; '-DMY_DEVICES=true' ; subset of devices
; '-DPUBLISH_UNPARSED=true' ; publish unparsed signal details
'-DDISABLERSSITHRESHOLD=true'
'-DMINRSSI=-82'
; '-DMINRSSI=-60'
; '-DRSSI_THRESHOLD=12' ; Apply a delta of 12 to average RSSI level
; '-DAVERAGE_RSSI=5000' ; Display RSSI floor ( Average of 5000 samples )
; '-DSIGNAL_RSSI=true' ; Display during signal receive
; '-DOOK_MODULATION=false' ; False is FSK, True is OOK
; *** RF Module Options ***
'-DRF_CC1101="CC1101"' ; CC1101 Transceiver Module
'-DRF_MODULE_CS=21' ; pin to be used as chip select
'-DRF_MODULE_GDO0=6' ; CC1101 pin GDO0
'-DRF_MODULE_GDO2=5' ; CC1101 pin GDO2
'-DRF_MODULE_INIT_STATUS=true' ; Display transceiver config during startup
; *** RadioLib Options ***
; '-DRADIOLIB_DEBUG=true'
; '-DRADIOLIB_VERBOSE=true'
; *** FSK Setting Testing ***
; '-DsetBitrate'
; '-DsetFreqDev'
; '-DsetRxBW'
targets = upload
monitor_port = /dev/ttyACM0
monitor_speed = 115200
upload_port = /dev/ttyACM0
monitor_filters =
default ; Remove typical terminal control codes from input
time ; Add timestamp with milliseconds for each new line
; log2file ; Log data to a file “platformio-device-monitor-*.log” located in the current working directory