; platformio.ini for unphone meshtastic

[env:unphone]

extends = esp32s3_base
board = unphone9
upload_speed = 921600
monitor_speed = 115200
monitor_filters = esp32_exception_decoder

build_unflags =
  ${esp32s3_base.build_unflags}
  -D ARDUINO_USB_MODE

build_flags = ${esp32_base.build_flags}
  ;-D BOARD_HAS_PSRAM // what's up with this - doesn't seem to be recognised at boot
  -D UNPHONE
  -I variants/unphone
  -D ARDUINO_USB_MODE=0
  -D UNPHONE_ACCEL=0
  -D UNPHONE_TOUCHS=0
  -D UNPHONE_SDCARD=0
  -D UNPHONE_UI0=0
  -D UNPHONE_LORA=0
  -D UNPHONE_FACTORY_MODE=0

build_src_filter = ${esp32_base.build_src_filter} +<../variants/unphone>

lib_deps = ${esp32s3_base.lib_deps}
  lovyan03/LovyanGFX                                   @ ^1.1.8
  https://gitlab.com/hamishcunningham/unphonelibrary#meshtastic   @ ^9.0.0
  adafruit/Adafruit NeoPixel @ ^1.12.0