menu "E-Paper Display (epd13in3e) Configuration"

    config EPD_PIN_CLK
        int "SPI CLK (SCLK) GPIO"
        default 7
        help
            Defaults sourced from a community-verified ESPHome
            integration for this exact board
            (github.com/rkaramandi/esphome-seeed-ee02) -- NOT an
            official Waveshare/Seeed reference driver (see
            firmware/components/epd13in3e/epd13in3e.c's top comment,
            which is about the still-unknown panel init/LUT/refresh
            register sequence, a separate and larger unknown than this
            pinout). Override if your own board wiring differs.

    config EPD_PIN_MOSI
        int "SPI MOSI (DIN) GPIO"
        default 9

    config EPD_PIN_CS_MASTER
        int "SPI CS (master half) GPIO"
        default 44
        help
            Unlike epd7in3e's single-CS interface, this panel is driven
            as two halves over one shared CLK/MOSI/DC/RST/BUSY bus with
            two independent chip-selects (master/slave) -- confirmed by
            the same community ESPHome integration, not yet by this
            component's own driver code (still unimplemented, see
            epd13in3e.c).

    config EPD_PIN_CS_SLAVE
        int "SPI CS (slave half) GPIO"
        default 41

    config EPD_PIN_DC
        int "Data/Command GPIO"
        default 10

    config EPD_PIN_RST
        int "Reset GPIO"
        default 38

    config EPD_PIN_BUSY
        int "Busy GPIO"
        default 4

    config EPD_PIN_POWER_EN
        int "Panel power-enable GPIO"
        default 43
        help
            No equivalent pin on epd7in3e's board -- the EE02 apparently
            gates the panel's own power rail separately from the ESP32-S3
            module's. Source: same community integration as the other
            pins above.

    config EPD_SPI_CLOCK_HZ
        int "SPI clock speed (Hz)"
        default 2000000
        help
            2MHz, not epd7in3e's 4MHz default -- the same community
            integration notes higher rates were unreliable on this
            panel/board combo. Revisit once wiring is confirmed on real
            hardware.

endmenu
