-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
72 lines (68 loc) · 2.19 KB
/
platformio.ini
File metadata and controls
72 lines (68 loc) · 2.19 KB
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
; 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_lilygo_868
src_dir = .
boards_dir = boards
[libraries]
arduinolog = https://github.com/1technophile/Arduino-Log.git#d13cd80
arduinojson =
ArduinoJson
rtl_433_esp = https://github.com/NorthernMan54/rtl_433_ESP
[env]
framework = arduino
monitor_filters = esp32_exception_decoder
platform = espressif32@6.1.0
lib_ldf_mode = chain+
lib_deps =
${libraries.arduinolog}
${libraries.arduinojson}
${libraries.rtl_433_ESP}
[env:esp32_lilygo_868]
board = lilygo-lora32-v21-433
board_build.partitions = min_spiffs.csv
build_flags =
'-DLOG_LEVEL=LOG_LEVEL_TRACE'
'-DONBOARD_LED=LED_BUILTIN' ; Onboard LED is GPIO 25 on the Heltec Board
'-DRF_MODULE_FREQUENCY=868.34'
;'-DMY_DEVICES=true'
; '-DPUBLISH_UNPARSED=true' ; publish unparsed signal details
; '-DRSSI_THRESHOLD=12' ; Apply a delta of 12 (default 9)
'-DMINRSSI=70'
;'-DDEMOD_DEBUG=true' ; display signal debug info
;'-DRTL_DEBUG'
; '-DMIN(a,b)=(((a)<(b))?(a):(b))'
; '-DMAX(a,b)=(((a)>(b))?(a):(b))'
'-DOOK_MODULATION=false'
'-DRF_SX1276="SX1276"'
'-DRF_MODULE_CS=18'
'-DRF_MODULE_MOSI=27'
'-DRF_MODULE_MISO=19'
'-DRF_MODULE_SCK=5'
'-DRF_MODULE_DIO0=26'
; '-DRTL_VERBOSE=96'
; '-DRTL_ANALYZE=96'
; '-DRF_MODULE_DIO1=33'
; '-DRF_MODULE_DIO2=32'
; '-DRF_MODULE_RST=23'
'-DRF_MODULE_INIT_STATUS=true'
'-DsetBitrate'
;'-DsetRxBW'
; '-DsetFreqDev'
'-Os' ; optimize for size
'-ffunction-sections' ; put each function in its own section
'-fdata-sections' ; put each data item in its own section
'-Wl,--gc-sections' ; remove unreferenced sections at link time
; '-flto' ; (optional) enable Link-Time Optimization
monitor_speed = 921600
upload_speed = 921600
lib_deps = ${env.lib_deps}
U8g2@>=2.22.14
knolleary/PubSubClient@^2.8