; First prototype nrf52840/sx1262 device
[env:heltec-mesh-node-t096]
custom_meshtastic_hw_model = 127
custom_meshtastic_hw_model_slug = HELTEC_MESH_NODE_T096
custom_meshtastic_architecture = nrf52840
custom_meshtastic_actively_supported = true
custom_meshtastic_support_level = 1
custom_meshtastic_display_name = Heltec Mesh Node 096
custom_meshtastic_images = heltec-mesh-node-t096.svg, heltec-mesh-node-t096-case.svg
custom_meshtastic_tags = Heltec

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

build_flags = ${nrf52840_base.build_flags}
  -Ivariants/nrf52840/heltec_mesh_node_t096
  -D HAS_LORA_FEM=1
  -D HELTEC_MESH_NODE_T096
  -D USE_TFTDISPLAY=1
  -D USER_SETUP_LOADED
  -D ST7735_DRIVER
  -D ST7735_REDTAB160x80
  -D TFT_SPI_PORT=SPI1 
  -D TFT_CS=ST7735_CS  ; Chip select control
  -D TFT_DC=ST7735_RS  ; Data Command control pin
  -D TFT_RST=ST7735_RESET  ; Reset pin
  -D TFT_BL=ST7735_BL  ; LED back-light
  -D TFT_BACKLIGHT_ON=LOW
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/nrf52840/heltec_mesh_node_t096>
lib_deps = 
  ${nrf52840_base.lib_deps}
  bodmer/TFT_eSPI@2.5.43 ; renovate: datasource=platformio-registry depName=bodmer/TFT_eSPI
