226 lines
		
	
	
		
			8.2 KiB
		
	
	
	
		
			INI
		
	
	
	
			
		
		
	
	
			226 lines
		
	
	
		
			8.2 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 = esp32_cc1101
 | 
						|
default_envs = esp32c3_cdc_cc1101
 | 
						|
;default_envs = esp32s3_cdc_sx1278
 | 
						|
;default_envs = esp32c3_cdc_sx1278
 | 
						|
;default_envs = rp2040_cdc_sx1278
 | 
						|
;default_envs = esp32_sx1278
 | 
						|
boards_dir = boards
 | 
						|
 | 
						|
[libraries]
 | 
						|
arduinolog = https://github.com/1technophile/Arduino-Log.git#d13cd80
 | 
						|
arduinojson =
 | 
						|
  ArduinoJson
 | 
						|
  finitespace/BME280
 | 
						|
  ; ArduinoJson @ 7.0.4
 | 
						|
  ; ArduinoJson @ 6.21.5
 | 
						|
  ; ArduinoJson @ 5.13.4  ; deprecated
 | 
						|
;rtl_433_ESP = shchuko/rtl_433_ESP
 | 
						|
rtl_433_ESP = https://github.com/NorthernMan54/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_ldf_mode = chain+
 | 
						|
lib_deps = 
 | 
						|
  ; sui77/rc-switch
 | 
						|
  ; https://github.com/1technophile/NewRemoteSwitch
 | 
						|
  ${libraries.arduinolog}
 | 
						|
  ${libraries.arduinojson}
 | 
						|
  ${libraries.rtl_433_ESP}
 | 
						|
 | 
						|
[env:esp32_sx1278]
 | 
						|
board = wemos_d1_mini32
 | 
						|
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'
 | 
						|
  ;'-DOOK_FIXED_THRESHOLD=0x6E'
 | 
						|
  ;'-DAUTOOOKFIX=1'
 | 
						|
  ;'-DPUBLISH_UNPARSED=true'
 | 
						|
  ;'-DSIGNAL_RSSI=true'
 | 
						|
  ;'-DDEMOD_DEBUG=true'
 | 
						|
  '-DOOK_MODULATION=true'      ; False is FSK, True is OOK
 | 
						|
  '-DRF_SX1278="SX1278"'  ; CC1101 Transceiver Module
 | 
						|
  '-DRF_MODULE_DIO0=21'   ; CC1101 pin GDO0
 | 
						|
  '-DRF_MODULE_DIO1=22'    ; CC1101 pin GDO2
 | 
						|
  '-DRF_MODULE_DIO2=16'
 | 
						|
  '-DRF_MODULE_RST=26'    ; CC1101 pin GDO2
 | 
						|
  '-DRF_MODULE_CS=5'          ; SPI Chip select
 | 
						|
  '-DRF_MODULE_INIT_STATUS=true'    ; Display transceiver config during startup
 | 
						|
  '-DRADIOLIB_DEBUG=true'
 | 
						|
targets = upload
 | 
						|
monitor_port = /dev/ttyUSB0
 | 
						|
monitor_speed = 115200
 | 
						|
upload_port = /dev/ttyUSB0
 | 
						|
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
 | 
						|
 | 
						|
[env:esp32s3_cdc_sx1278]
 | 
						|
board = waveshare_esp32_s3_zero
 | 
						|
build_flags =
 | 
						|
  ;'-DMY_DEVICES=true'
 | 
						|
  ;'-DDISABLERSSITHRESHOLD=true'
 | 
						|
  '-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'
 | 
						|
  ;'-DOOK_FIXED_THRESHOLD=0x6E'
 | 
						|
  ;'-DAUTOOOKFIX=1'
 | 
						|
  '-DPUBLISH_UNPARSED=true'
 | 
						|
  '-DRAW_SIGNAL_DEBUG=true'   ; display raw received messages
 | 
						|
  '-DSIGNAL_RSSI=true'
 | 
						|
  '-DDEMOD_DEBUG=true'
 | 
						|
  '-DOOK_MODULATION=true'      ; False is FSK, True is OOK
 | 
						|
  '-DRF_SX1278="SX1278"'  ; CC1101 Transceiver Module
 | 
						|
  '-DRF_MODULE_DIO0=11'   ; CC1101 pin GDO0
 | 
						|
  '-DRF_MODULE_DIO1=9'    ; CC1101 pin GDO2
 | 
						|
  '-DRF_MODULE_DIO2=8'
 | 
						|
  '-DRF_MODULE_RST=4'    ; CC1101 pin GDO2
 | 
						|
  ;'-DRF_MODULE_SCK=12'         ; SPI Clock
 | 
						|
  ;'-DRF_MODULE_MISO=13'        ; SPI Serial Output
 | 
						|
  ;'-DRF_MODULE_MOSI=5'        ; SPI Serial Input
 | 
						|
  '-DRF_MODULE_CS=10'          ; SPI Chip select
 | 
						|
  '-DRF_MODULE_INIT_STATUS=true'    ; Display transceiver config during startup
 | 
						|
  ;'-DRADIOLIB_DEBUG=true'
 | 
						|
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
 | 
						|
 | 
						|
[env:esp32c3_cdc_sx1278]
 | 
						|
board = nologo_esp32c3_super_mini
 | 
						|
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'
 | 
						|
  '-DMY_DEVICES=true'
 | 
						|
  '-DDISABLERSSITHRESHOLD=true'
 | 
						|
  ;'-DOOK_FIXED_THRESHOLD=0x6E'
 | 
						|
  ;'-DAUTOOOKFIX=1'
 | 
						|
  ;'-DPUBLISH_UNPARSED=true'
 | 
						|
  ;'-DSIGNAL_RSSI=true'
 | 
						|
  ;'-DDEMOD_DEBUG=true'
 | 
						|
  '-DOOK_MODULATION=true'      ; False is FSK, True is OOK
 | 
						|
  '-DRF_SX1278="SX1278"'  ; CC1101 Transceiver Module
 | 
						|
  '-DRF_MODULE_DIO0=1'   ; CC1101 pin GDO0
 | 
						|
  '-DRF_MODULE_DIO1=3'    ; CC1101 pin GDO2
 | 
						|
  '-DRF_MODULE_DIO2=0'
 | 
						|
  '-DRF_MODULE_RST=20'    ; CC1101 pin GDO2
 | 
						|
  ;'-DRF_MODULE_SCK=9'         ; SPI Clock
 | 
						|
  ;'-DRF_MODULE_MISO=1'        ; SPI Serial Output
 | 
						|
  ;'-DRF_MODULE_MOSI=2'        ; SPI Serial Input
 | 
						|
  '-DRF_MODULE_CS=7'          ; SPI Chip select
 | 
						|
  '-DRF_MODULE_INIT_STATUS=true'    ; Display transceiver config during startup
 | 
						|
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
 | 
						|
 | 
						|
[env:rp2040_cdc_sx1278]
 | 
						|
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
 | 
						|
board = waveshare_rp2040_zero
 | 
						|
board_build.core = earlephilhower
 | 
						|
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'
 | 
						|
  '-DMY_DEVICES=true'
 | 
						|
  '-DDISABLERSSITHRESHOLD=true'
 | 
						|
  ;'-DOOK_FIXED_THRESHOLD=0x6E'
 | 
						|
  ;'-DAUTOOOKFIX=1'
 | 
						|
  ;'-DPUBLISH_UNPARSED=true'
 | 
						|
  ;'-DSIGNAL_RSSI=true'
 | 
						|
  ;'-DDEMOD_DEBUG=true'
 | 
						|
  '-DOOK_MODULATION=true'      ; False is FSK, True is OOK
 | 
						|
  '-DRF_SX1278="SX1278"'  ; CC1101 Transceiver Module
 | 
						|
  '-DRF_MODULE_DIO0=1'   ; CC1101 pin GDO0
 | 
						|
  '-DRF_MODULE_DIO1=3'    ; CC1101 pin GDO2
 | 
						|
  '-DRF_MODULE_DIO2=0'
 | 
						|
  '-DRF_MODULE_RST=20'    ; CC1101 pin GDO2
 | 
						|
  ;'-DRF_MODULE_SCK=9'         ; SPI Clock
 | 
						|
  ;'-DRF_MODULE_MISO=1'        ; SPI Serial Output
 | 
						|
  ;'-DRF_MODULE_MOSI=2'        ; SPI Serial Input
 | 
						|
  '-DRF_MODULE_CS=7'          ; SPI Chip select
 | 
						|
  '-DRF_MODULE_INIT_STATUS=true'    ; Display transceiver config during startup
 | 
						|
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
 | 
						|
 | 
						|
[env:esp32c3_cdc_cc1101]
 | 
						|
board = nologo_esp32c3_super_mini
 | 
						|
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'
 | 
						|
  '-DMY_DEVICES=true'		; subset of devices
 | 
						|
  '-DDISABLERSSITHRESHOLD=true'
 | 
						|
;  '-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
 | 
						|
;  '-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_CS=7'      ; pin to be used as chip select
 | 
						|
  '-DRF_MODULE_GDO0=0'   ; CC1101 pin GDO0
 | 
						|
  '-DRF_MODULE_GDO2=1'    ; 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
 |