Skip to content

Commit

Permalink
Merge pull request #49 from mjoldfield/master
Browse files Browse the repository at this point in the history
PlatformIO support
  • Loading branch information
kizniche authored Jul 3, 2022
2 parents 14bb0a6 + 5695727 commit ae76501
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,26 @@ board = ttgo-t-beam
framework = arduino

; note: we add src to our include search path so that lmic_project_config can override
build_flags = -Wall -Wextra -Wno-missing-field-initializers -O3 -Wl,-Map,.pio/build/esp32/output.map -D CFG_us915 -D CFG_sx1276_radio
; -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
build_flags = -Wall -Wextra -Wno-missing-field-initializers -O3 -Wl,-Map,.pio/build/esp32/output.map
; -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG

-D hal_init=LMICHAL_init ; Workaround for naming conflict of function hal_init

; Diable lmic_project_config.h, so that we can configure stuff here instead
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS

; Configure radio: enable exactly one of these
; -D CFG_sx1272_radio=1 ; Use for SX1272 radio
-D CFG_sx1276_radio=1 ; Use for SX1276 radio

; Configure region: enable exactly one of these
; -D CFG_us915=1
-D CFG_eu868=1

monitor_speed = 115200

lib_deps =
https://github.com/mcci-catena/arduino-lmic
TinyGPSPlus
ESP8266_SSD1306
AXP202X_Library
SPI

https://github.com/mikalhart/TinyGPSPlus
https://github.com/ThingPulse/esp8266-oled-ssd1306
https://github.com/lewisxhe/AXP202X_Library

0 comments on commit ae76501

Please sign in to comment.