menu "E-Paper Display (epd7in3e) Configuration"

    config EPD_PIN_CLK
        int "SPI CLK (SCLK) GPIO"
        default 20
        help
            Defaults match the wiring on the reference build: CLK=20,
            MOSI(DIN)=19, CS=18, DC=9, RST=10, BUSY=11. Override to match
            your own wiring if different.

            Note: DC uses GPIO9, one of the ESP32-C6's strapping pins
            (sampled at reset to help select boot mode). It's only sampled
            during power-on/reset, so it's safe to drive as a normal output
            once the app is running -- but if flashing/boot ever misbehaves,
            check whether the EPD is pulling this line low during reset.

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

    config EPD_PIN_CS
        int "SPI CS GPIO"
        default 18

    config EPD_PIN_DC
        int "Data/Command GPIO"
        default 9

    config EPD_PIN_RST
        int "Reset GPIO"
        default 10

    config EPD_PIN_BUSY
        int "Busy GPIO"
        default 11

    config EPD_SPI_CLOCK_HZ
        int "SPI clock speed (Hz)"
        default 4000000
        help
            The panel's SPI interface is rated well above this, but dupont
            wires/breadboards are often unreliable much past a few MHz.
            Raise this once the physical wiring is confirmed solid.

endmenu
