forked from LilyGO/ESP32-Paxcounter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
132 lines (122 loc) · 3.38 KB
/
platformio.ini
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
; 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
; http://docs.platformio.org/page/projectconf.html
; ---> SELECT TARGET PLATFORM HERE! <---
[platformio]
env_default = heltec_wifi_lora_32
;env_default = ttgov1
;env_default = ttgov2
;env_default = lopy
;env_default = lopy4
;env_default = lolin32lite_lora
;env_default = lolin32_lora
;
description = Paxcounter is a proof-of-concept ESP32 device for metering passenger flows in realtime. It counts how many mobile devices are around.
[common_env_data]
lib_deps_display =
U8g2@>=2.22.14
lib_deps_rgbled =
SmartLeds
build_flags =
; we need build_flag for logging, otherwise we can't use ESP_LOGx in arduino framework
; ---> NOTE: For production run set DEBUG_LEVEL level to NONE! <---
; otherwise device may crash in dense environments due to serial buffer overflow
;
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
;
; override lora settings from LMiC library in lmic/config.h and use main.h instead
-D_lmic_config_h_
-include "src/main.h"
[env:heltec_wifi_lora_32]
platform = espressif32
framework = arduino
board = heltec_wifi_lora_32
monitor_baud = 115200
upload_speed = 115200
lib_deps =
${common_env_data.lib_deps_display}
build_flags =
${common_env_data.build_flags}
-Dheltec_wifi_lora_32
-include "src/hal/heltec.h"
[env:ttgov1]
platform = espressif32
framework = arduino
board = esp32dev
monitor_baud = 115200
upload_speed = 115200
lib_deps =
${common_env_data.lib_deps_display}
build_flags =
${common_env_data.build_flags}
-Dttgov1
-include "src/hal/ttgov1.h"
[env:ttgov2]
platform = espressif32
framework = arduino
board = esp32dev
monitor_baud = 115200
upload_speed = 921600
lib_deps =
${common_env_data.lib_deps_display}
build_flags =
${common_env_data.build_flags}
-Dttgov2
-include "src/hal/ttgov2.h"
[env:lopy]
platform = espressif32
framework = arduino
board = esp32dev
monitor_baud = 115200
upload_speed = 921600
lib_deps =
${common_env_data.lib_deps_rgbled}
build_flags =
${common_env_data.build_flags}
-Dlopy
-include "src/hal/lopy.h"
[env:lopy4]
platform = espressif32
framework = arduino
board = esp32dev
monitor_baud = 115200
upload_speed = 921600
lib_deps =
${common_env_data.lib_deps_rgbled}
build_flags =
${common_env_data.build_flags}
-Dlopy4
-include "src/hal/lopy4.h"
[env:lolin32lite_lora]
platform = espressif32
framework = arduino
board = lolin32
monitor_baud = 115200
upload_speed = 256000
lib_deps =
${common_env_data.lib_deps_rgbled}
build_flags =
${common_env_data.build_flags}
-Dlolin32lite_lora
-include "src/hal/lolin32lite_lora.h"
[env:lolin32_lora]
platform = espressif32
framework = arduino
board = lolin32
monitor_baud = 115200
upload_speed = 921600
lib_deps =
${common_env_data.lib_deps_rgbled}
build_flags =
${common_env_data.build_flags}
-Dlolin32_lora
-include "src/hal/lolin32_lora.h"