; Heltec Mesh Node T1 nRF52840/SX1262 device
[env:heltec-mesh-node-t1]
custom_meshtastic_hw_model = 133
custom_meshtastic_hw_model_slug = HELTEC_MESH_NODE_T1
custom_meshtastic_architecture = nrf52840
custom_meshtastic_actively_supported = true
custom_meshtastic_support_level = 1
custom_meshtastic_display_name = Heltec Mesh Node T1
custom_meshtastic_images = heltec-mesh-node-t1.svg
custom_meshtastic_tags = Heltec

extends = nrf52840_base
board = heltec_mesh_node_t1
board_level = pr
debug_tool = jlink

build_flags = ${nrf52840_base.build_flags}
  -Ivariants/nrf52840/heltec_mesh_node_t1
  -DHELTEC_MESH_NODE_T1
  -DUSE_TFTDISPLAY
  -DUSER_SETUP_LOADED
  -DST7735_DRIVER
  -DST7735_REDTAB160x80
  -D TFT_SPI_PORT=SPI1
  -D TFT_CS=ST7735_CS
  -D TFT_DC=ST7735_RS
  -D TFT_RST=ST7735_RESET
  -D TFT_BL=ST7735_BL
  -D TFT_BACKLIGHT_ON=LOW

build_src_filter = ${nrf52_base.build_src_filter} +<../variants/nrf52840/heltec_mesh_node_t1>
lib_deps =
  ${nrf52840_base.lib_deps}
  lewisxhe/PCF8563_Library@^1.0.1
  bodmer/TFT_eSPI@2.5.43
