# lvgl_clock - style: digital, self-contained 7-segment display.
# Compile:  esphome compile examples/example_digital.yaml

esphome:
  name: lvgl-clock-digital

packages:
  base: !include common_base_esp32_s3_devkit.yaml
  display: !include common_tft_4_0_spi_st7796_320_480.yaml

lvgl:
  widgets:
    - lvgl_clock:
        id: dc
        time_id: clock_time
        width: ${clock_width}
        height: ${clock_height}
        align: CENTER
        style: digital
        foreground: cc_hands
        background: cc_bg
        show_seconds: false
        twenty_four_hour: true        # false = 1-12, add am/pm to digital and flipclock
        digital:
          segment_style: classic  # classic (tapered LCD) | rounded (capsule ends)
          blink: true
          blank_leading_zero: false
