-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathplatformio.ini
More file actions
68 lines (61 loc) · 1.66 KB
/
Copy pathplatformio.ini
File metadata and controls
68 lines (61 loc) · 1.66 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
; 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 =
node-id-1
; node-id-3
node-id-255
[common]
platform = espressif32
framework = arduino
monitor_speed = 115200
lib_deps =
; board definitions
[board-esp32doit]
board = esp32doit-devkit-v1
PINOUT_RFM95_CS=5
PINOUT_RFM95_RST=14
PINOUT_RFM95_INT=2
[board-tbeam]
board = ttgo-t-beam
PINOUT_RFM95_CS=18
PINOUT_RFM95_RST=14
PINOUT_RFM95_INT=26
; node definitions
[env:node-id-1]
monitor_port = COM9
build_flags =
-D SELF_ADDRESS=1
-D TARGET_ADDRESS=255
-D RFM95_CS=${board-tbeam.PINOUT_RFM95_CS}
-D RFM95_RST=${board-tbeam.PINOUT_RFM95_RST}
-D RFM95_INT=${board-tbeam.PINOUT_RFM95_INT}
upload_port = ${this.monitor_port}
extends = common, board-tbeam
[env:node-id-3]
monitor_port = COM4
build_flags =
-D SELF_ADDRESS=3
-D TARGET_ADDRESS=255
-D RFM95_CS=${board-esp32doit.PINOUT_RFM95_CS}
-D RFM95_RST=${board-esp32doit.PINOUT_RFM95_RST}
-D RFM95_INT=${board-esp32doit.PINOUT_RFM95_INT}
upload_port = ${this.monitor_port}
extends = common, board-esp32doit
[env:node-id-255]
monitor_port = COM7
build_flags =
-D SELF_ADDRESS=255
-D TARGET_ADDRESS=1
-D RFM95_CS=${board-esp32doit.PINOUT_RFM95_CS}
-D RFM95_RST=${board-esp32doit.PINOUT_RFM95_RST}
-D RFM95_INT=${board-esp32doit.PINOUT_RFM95_INT}
upload_port = ${this.monitor_port}
extends = common, board-esp32doit