Skip to content

Commit b3ea958

Browse files
committed
Add C5 config in ini file
1 parent 5534847 commit b3ea958

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

example/OOK_Receiver/platformio.ini

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ framework = arduino
2828
monitor_filters = esp32_exception_decoder
2929
;platform = espressif32@3.5.0
3030
platform = espressif32@6.1.0
31+
extra_scripts = pre:update_link_flags.py
3132
lib_ldf_mode = chain+
3233
lib_deps =
3334
${libraries.arduinolog}
@@ -75,6 +76,53 @@ build_flags =
7576
upload_protocol = esptool
7677
monitor_speed = 921600
7778

79+
[env:esp32c5_cc1101]
80+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
81+
board = esp32-c5-devkitc-1
82+
framework = arduino
83+
build_flags =
84+
'-DCONFIG_ESP_CONSOLE_UART=1' ; settings for esp32c3 without uart
85+
'-DARDUINO_USB_MODE=1'
86+
'-DARDUINO_USB_CDC_ON_BOOT=1'
87+
'-DLOG_LEVEL=LOG_LEVEL_TRACE'
88+
'-DONBOARD_LED=27' ; LED_D4
89+
; *** rtl_433_ESP Options ***
90+
; '-DRF_MODULE_FREQUENCY=915.00'
91+
'-DOOK_MODULATION=true' ; False is FSK, True is OOK
92+
'-DRTL_DEBUG=1' ; rtl_433 verbose mode
93+
; '-DRTL_VERBOSE=58' ; LaCrosse TX141-Bv2, TX141TH-Bv2, TX141-Bv3, TX141W, TX145wsdth sensor
94+
; '-DRAW_SIGNAL_DEBUG=true' ; display raw received messages
95+
; '-DMEMORY_DEBUG=true' ; display memory usage information
96+
'-DDEMOD_DEBUG=true' ; display signal debug info
97+
#'-DMY_DEVICES=true' ; subset of devices
98+
; '-DPUBLISH_UNPARSED=true' ; publish unparsed signal details
99+
'-DMINRSSI=-88'
100+
'-DRSSI_THRESHOLD=1' ; Apply a delta of 12 to average RSSI level
101+
; '-DAVERAGE_RSSI=5000' ; Display RSSI floor ( Average of 5000 samples )
102+
; '-DSIGNAL_RSSI=true' ; Display during signal receive
103+
; '-DOOK_MODULATION=false' ; False is FSK, True is OOK
104+
; *** RF Module Options ***
105+
'-DRF_CC1101="CC1101"' ; CC1101 Transceiver Module
106+
; '-DRF_MODULE_CS=7' ; pin to be used as chip select
107+
'-DRF_MODULE_GDO0=25' ; CC1101 pin GDO0
108+
'-DRF_MODULE_GDO2=5' ; CC1101 pin GDO2
109+
'-DRF_MODULE_CS=10' ; pin to be used as chip select
110+
'-DRF_MODULE_MOSI=02'
111+
'-DRF_MODULE_MISO=7'
112+
'-DRF_MODULE_SCK=6'
113+
'-DRF_MODULE_INIT_STATUS=true' ; Display transceiver config during startup
114+
; *** RadioLib Options ***
115+
; '-DRADIOLIB_DEBUG=true'
116+
; '-DRADIOLIB_VERBOSE=true'
117+
; *** FSK Setting Testing ***
118+
; '-DsetBitrate'
119+
; '-DsetFreqDev'
120+
; '-DsetRxBW'
121+
122+
upload_protocol = esptool
123+
monitor_speed = 921600
124+
125+
78126
[env:esp32_cc1101]
79127
board = esp32dev
80128
build_flags =
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# Custom settings, as referred to as "extra_script" in platformio.ini
3+
#
4+
# See http://docs.platformio.org/en/latest/projectconf.html#extra-script
5+
6+
from SCons.Script import DefaultEnvironment
7+
8+
env = DefaultEnvironment()
9+
10+
# General options that are passed to the C and C++ compilers
11+
env.Append(CCFLAGS=["-Wno-implicit-function-declaration", "-Wno-error=implicit-function-declaration","-Wno-int-conversion"])

0 commit comments

Comments
 (0)