-
Notifications
You must be signed in to change notification settings - Fork 3
/
platformio.ini
executable file
·62 lines (56 loc) · 2.32 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
[platformio]
default_envs = working-in-progress
description = A two way messaging device with built-in environment sensors for LoRaWAN.
[common_build_settings]
build_flags =
; Common flags
-O3
-Wall
-Wextra
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
-D CFG_eu868=1
-D CFG_sx1276_radio=1
-D LMIC_ENABLE_arbitrary_clock_error=1
-D LMIC_LORAWAN_SPEC_VERSION=LMIC_LORAWAN_SPEC_VERSION_1_0_3
; Disable features not used for this LoRaWAN Class A device
-D DISABLE_BEACONS=1
-D DISABLE_PING=1
-D LMIC_ENABLE_DeviceTimeReq=0
; Debug flags
; -D LMIC_PRINTF_TO=Serial
; -D LMIC_DEBUG_LEVEL=2
; Select the power management chip
-D AXP192=1
; -D AXP2101=1
; hal_init is already used by arduino-esp32 (2.0), rename to LMIC_HAL_init
; to avoid name collision.
; https://github.com/mcci-catena/arduino-lmic/issues/714
-D hal_init=LMIC_HAL_init
deps_3rd_party =
ESP8266 and ESP32 OLED driver for SSD1306 displays
MCCI LoRaWAN LMIC library
adafruit/Adafruit BME280 Library
lewisxhe/XPowersLib
mikalhart/TinyGPSPlus
sparkfun/SparkFun u-blox GNSS Arduino Library
deps_platform_builtin =
SPI
Wire
dev_board_serial_port = COM3
esp_debug_level = 3 # 0 - None, 1 - Error, 2 - Warn, 3 - Info, 4 - Debug, 5 - Verbose
[env:working-in-progress]
board = ttgo-t-beam
board_build.partitions = huge_app.csv # https://raw.githubusercontent.com/espressif/arduino-esp32/master/tools/partitions/huge_app.csv
framework = arduino
platform = espressif32
; It is occasionally useful to switch to git repo as the revision picked up by "platform = espressif32" is often not up to date.
; platform = https://github.com/platformio/platform-espressif32.git
; platform_packages = platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
build_flags = ${common_build_settings.build_flags} -DCORE_DEBUG_LEVEL=${common_build_settings.esp_debug_level} -DLOG_LOCAL_LEVEL=${common_build_settings.esp_debug_level}
lib_deps = ${common_build_settings.deps_3rd_party} ${common_build_settings.deps_platform_builtin}
monitor_filters = time, esp32_exception_decoder, default
monitor_port = ${common_build_settings.dev_board_serial_port}
monitor_speed = 115200
upload_port = ${common_build_settings.dev_board_serial_port}
upload_protocol = esptool
upload_speed = 921600