platformio.ini 907 Bytes
Newer Older
1
2
; PlatformIO Project Configuration File
;
3
4
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
5
;   Library options: dependencies, extra library storages
6
;   Advanced options: extra scripting
7
8
;
; Please visit documentation for the other options and examples
9
; https://docs.platformio.org/page/projectconf.html
10
11

[platformio]
12
src_dir = ampel-firmware
13
14
15
16
17
18
19
20
21
22
23
24

[env:esp8266]
platform = espressif8266
board = esp12e
framework = arduino
monitor_speed = 115200

[env:esp32]
platform = espressif32
board = ttgo-lora32-v1
framework = arduino
monitor_speed = 115200
25
26
lib_deps =
    MCCI LoRaWAN LMIC library
27
28
build_flags =
    -D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
29
30
; Conflict between 2 hal_init functions. see https://community.platformio.org/t/multiple-definitions-warning-cant-fix-it/27534/9
    -D hal_init=LMICHAL_init
31
32
    -D CFG_eu868=1
    -D CFG_sx1276_radio=1