[env:heltec-vision-master-e290]
extends = esp32s3_base
board = heltec_vision_master_e290
build_flags = 
  ${esp32s3_base.build_flags} 
  -I variants/heltec_vision_master_e290
  -D HELTEC_VISION_MASTER_E290
  -D BUTTON_CLICK_MS=200
  -D EINK_DISPLAY_MODEL=GxEPD2_290_BN8
  -D EINK_WIDTH=296
  -D EINK_HEIGHT=128
  -D USE_EINK_DYNAMICDISPLAY            ; Enable Dynamic EInk
  -D EINK_LIMIT_FASTREFRESH=10          ; How many consecutive fast-refreshes are permitted
  -D EINK_LIMIT_RATE_BACKGROUND_SEC=30  ; Minimum interval between BACKGROUND updates
  -D EINK_LIMIT_RATE_RESPONSIVE_SEC=1   ; Minimum interval between RESPONSIVE updates
  -D EINK_HASQUIRK_GHOSTING             ; Display model is identified as "prone to ghosting"
  -D EINK_HASQUIRK_WEAKFASTREFRESH      ; Pixels set with fast-refresh are easy to clear, disrupted by sunlight
;  -D EINK_LIMIT_GHOSTING_PX=2000        ; How much image ghosting is tolerated
;  -D EINK_BACKGROUND_USES_FAST          ; (If enabled) don't redraw RESPONSIVE frames at next BACKGROUND update

lib_deps =
  ${esp32s3_base.lib_deps}
  https://github.com/meshtastic/GxEPD2#448c8538129fde3d02a7cb5e6fc81971ad92547f
  lewisxhe/PCF8563_Library@^1.0.1
upload_speed = 115200