175 lines
5.8 KiB
INI
175 lines
5.8 KiB
INI
; 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
|
|
|
|
[env:heltec_wifi_lora_32]
|
|
platform = espressif32
|
|
board = heltec_wifi_lora_32
|
|
framework = arduino
|
|
monitor_baud = 115200
|
|
upload_speed = 115200
|
|
lib_deps =
|
|
U8g2
|
|
build_flags =
|
|
;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
|
; -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_
|
|
-Dheltec_wifi_lora_32
|
|
-include "src/main.h"
|
|
-include "src/hal/heltec.h"
|
|
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
|
|
; -DCONFIG_FREERTOS_UNICORE
|
|
|
|
[env:ttgov1]
|
|
platform = espressif32
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_baud = 115200
|
|
; On my V1, upload does not works over default 115200
|
|
upload_speed = 921600
|
|
;upload_port = COM15
|
|
lib_deps =
|
|
U8g2
|
|
build_flags =
|
|
;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
|
;override lora settings from LMiC library in lmic/config.h and use main.h instead
|
|
-Dttgov1
|
|
-D_lmic_config_h_
|
|
-include "src/main.h"
|
|
-include "src/hal/ttgov1.h"
|
|
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
|
|
; -DCONFIG_FREERTOS_UNICORE
|
|
|
|
|
|
[env:ttgov2]
|
|
platform = espressif32
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_baud = 115200
|
|
upload_speed = 921600
|
|
lib_deps =
|
|
U8g2
|
|
build_flags =
|
|
;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
|
;override lora settings from LMiC library in lmic/config.h and use main.h instead
|
|
-D_lmic_config_h_
|
|
-Dttgov2
|
|
-include "src/main.h"
|
|
-include "src/hal/ttgov2.h"
|
|
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
|
|
; -DCONFIG_FREERTOS_UNICORE
|
|
|
|
[env:lopy]
|
|
platform = espressif32
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_baud = 115200
|
|
upload_speed = 921600
|
|
lib_deps =
|
|
U8g2@>2.21.7
|
|
SmartLeds
|
|
build_flags =
|
|
;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
|
;override lora settings from LMiC library in lmic/config.h and use main.h instead
|
|
-Dlopy
|
|
-D_lmic_config_h_
|
|
-include "src/main.h"
|
|
-include "src/hal/lopy.h"
|
|
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
|
|
; -DCONFIG_FREERTOS_UNICORE
|
|
|
|
[env:lopy4]
|
|
platform = espressif32
|
|
board = esp32dev
|
|
framework = arduino
|
|
monitor_baud = 115200
|
|
upload_speed = 921600
|
|
lib_deps =
|
|
U8g2@>2.21.7
|
|
SmartLeds
|
|
build_flags =
|
|
;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
|
;override lora settings from LMiC library in lmic/config.h and use main.h instead
|
|
-D_lmic_config_h_
|
|
-Dlopy4
|
|
-include "src/main.h"
|
|
-include "src/hal/lopy4.h"
|
|
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
|
|
; -DCONFIG_FREERTOS_UNICORE
|
|
|
|
[env:lolin32lite_lora]
|
|
platform = espressif32
|
|
board = lolin32
|
|
framework = arduino
|
|
monitor_baud = 115200
|
|
upload_speed = 256000
|
|
lib_deps =
|
|
U8g2@>2.21.7
|
|
SmartLeds
|
|
build_flags =
|
|
;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
|
;override lora settings from LMiC library in lmic/config.h and use main.h instead
|
|
-D_lmic_config_h_
|
|
-Dlolin32lite_lora
|
|
-include "src/main.h"
|
|
-include "src/hal/lolin32lite_lora.h"
|
|
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
|
|
; -DCONFIG_FREERTOS_UNICORE
|
|
|
|
[env:lolin32_lora]
|
|
platform = espressif32
|
|
board = lolin32
|
|
framework = arduino
|
|
monitor_baud = 115200
|
|
upload_speed = 921600
|
|
lib_deps =
|
|
U8g2@>2.21.7
|
|
SmartLeds
|
|
build_flags =
|
|
;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
|
;override lora settings from LMiC library in lmic/config.h and use main.h instead
|
|
-D_lmic_config_h_
|
|
-Dlolin32_lora
|
|
-include "src/main.h"
|
|
-include "src/hal/lolin32_lora.h"
|
|
;FreeRTOS single core operation, switches off core 1 (see arduino-esp32/cores/esp32/main.cpp)
|
|
; -DCONFIG_FREERTOS_UNICORE
|