platformio.ini 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. [LilyGo_TDeck]
  2. extends = esp32_base
  3. board = t-deck
  4. build_flags =
  5. ${esp32_base.build_flags}
  6. ${sensor_base.build_flags}
  7. -I variants/lilygo_tdeck
  8. -D LILYGO_TDECK
  9. -D BOARD_HAS_PSRAM=1
  10. -D CORE_DEBUG_LEVEL=1
  11. -D ARDUINO_USB_CDC_ON_BOOT=1
  12. -D PIN_USER_BTN=0 ; Trackball button
  13. -D PIN_PERF_POWERON=10 ; Peripheral power pin
  14. -D RADIO_CLASS=CustomSX1262
  15. -D WRAPPER_CLASS=CustomSX1262Wrapper
  16. -D LORA_TX_POWER=22
  17. -D SX126X_DIO2_AS_RF_SWITCH=false
  18. -D SX126X_CURRENT_LIMIT=140
  19. -D SX126X_RX_BOOSTED_GAIN=1
  20. -D SX126X_DIO3_TCXO_VOLTAGE=1.8f
  21. -D P_LORA_DIO_1=45 ; LORA IRQ pin
  22. -D ENV_INCLUDE_GPS=1
  23. -D ENV_INCLUDE_AHTX0=0
  24. -D ENV_INCLUDE_BME280=0
  25. -D ENV_INCLUDE_BMP280=0
  26. -D ENV_INCLUDE_SHTC3=0
  27. -D ENV_INCLUDE_SHT4X=0
  28. -D ENV_INCLUDE_LPS22HB=0
  29. -D ENV_INCLUDE_INA3221=0
  30. -D ENV_INCLUDE_INA219=0
  31. -D ENV_INCLUDE_INA226=0
  32. -D ENV_INCLUDE_INA260=0
  33. -D ENV_INCLUDE_MLX90614=0
  34. -D ENV_INCLUDE_VL53L0X=0
  35. -D ENV_INCLUDE_BME680=0
  36. -D ENV_INCLUDE_BMP085=0
  37. -D P_LORA_NSS=9 ; LORA SS pin
  38. -D P_LORA_RESET=17 ; LORA RST pin
  39. -D P_LORA_BUSY=13 ; LORA Busy pin
  40. -D P_LORA_SCLK=40 ; LORA SCLK pin
  41. -D P_LORA_MISO=38 ; LORA MISO pin
  42. -D P_LORA_MOSI=41 ; LORA MOSI pin
  43. -D DISPLAY_CLASS=ST7789LCDDisplay
  44. -D DISPLAY_SCALE_X=2.5
  45. -D DISPLAY_SCALE_Y=3.75
  46. -D PIN_TFT_RST=-1
  47. -D PIN_TFT_VDD_CTL=-1
  48. -D PIN_TFT_LEDA_CTL=42
  49. -D PIN_TFT_CS=12
  50. -D PIN_TFT_DC=11
  51. -D PIN_TFT_SCL=40
  52. -D PIN_TFT_SDA=41
  53. -D PIN_GPS_RX=43
  54. -D PIN_GPS_TX=44
  55. -D GPS_BAUD_RATE=38400
  56. build_src_filter = ${esp32_base.build_src_filter}
  57. +<../variants/lilygo_tdeck>
  58. +<helpers/sensors/*.cpp>
  59. lib_deps =
  60. ${esp32_base.lib_deps}
  61. ${sensor_base.lib_deps}
  62. adafruit/Adafruit ST7735 and ST7789 Library @ ^1.11.0
  63. [env:LilyGo_TDeck_companion_radio_usb]
  64. extends = LilyGo_TDeck
  65. build_flags =
  66. ${LilyGo_TDeck.build_flags}
  67. -I examples/companion_radio/ui-new
  68. -D MAX_CONTACTS=350
  69. -D MAX_GROUP_CHANNELS=40
  70. -D OFFLINE_QUEUE_SIZE=256
  71. build_src_filter = ${LilyGo_TDeck.build_src_filter}
  72. +<helpers/esp32/*.cpp>
  73. +<helpers/ui/MomentaryButton.cpp>
  74. +<../examples/companion_radio/*.cpp>
  75. +<../examples/companion_radio/ui-new/*.cpp>
  76. +<helpers/ui/ST7789LCDDisplay.cpp>
  77. lib_deps =
  78. ${LilyGo_TDeck.lib_deps}
  79. densaugeo/base64 @ ~1.4.0
  80. [env:LilyGo_TDeck_companion_radio_ble]
  81. extends = LilyGo_TDeck
  82. build_flags =
  83. ${LilyGo_TDeck.build_flags}
  84. -I examples/companion_radio/ui-new
  85. -D MAX_CONTACTS=350
  86. -D MAX_GROUP_CHANNELS=40
  87. -D BLE_PIN_CODE=123456
  88. -D OFFLINE_QUEUE_SIZE=256
  89. build_src_filter = ${LilyGo_TDeck.build_src_filter}
  90. +<helpers/esp32/*.cpp>
  91. +<helpers/ui/MomentaryButton.cpp>
  92. +<../examples/companion_radio/*.cpp>
  93. +<../examples/companion_radio/ui-new/*.cpp>
  94. +<helpers/ui/ST7789LCDDisplay.cpp>
  95. lib_deps =
  96. ${LilyGo_TDeck.lib_deps}
  97. densaugeo/base64 @ ~1.4.0
  98. [env:LilyGo_TDeck_repeater]
  99. extends = LilyGo_TDeck
  100. build_flags =
  101. ${LilyGo_TDeck.build_flags}
  102. -D ADVERT_NAME='"TDeck Repeater"'
  103. -D ADVERT_LAT=0.0
  104. -D ADVERT_LON=0.0
  105. -D ADMIN_PASSWORD='"password"'
  106. -D MAX_NEIGHBOURS=50
  107. build_src_filter = ${LilyGo_TDeck.build_src_filter}
  108. +<../examples/simple_repeater>
  109. +<helpers/ui/ST7789LCDDisplay.cpp>
  110. lib_deps =
  111. ${LilyGo_TDeck.lib_deps}
  112. ${esp32_ota.lib_deps}