Type alias DisplayInterfaceSpi

DisplayInterfaceSpi: {
    baudrate?: number;
    bus: SpiBus;
    cs?: GpioId | null;
    dc?: GpioId | {
        paramLevel: 0 | 1;
        pin: GpioId;
    } | null;
    rst?: GpioId | null;
}

SPI显示设备接口

Type declaration

  • Optional baudrate?: number

    SPI总线速度(Hz),默认40_000_000。

  • bus: SpiBus

    SPI总线对象

  • Optional cs?: GpioId | null

    CS引脚

  • Optional dc?: GpioId | {
        paramLevel: 0 | 1;
        pin: GpioId;
    } | null

    DC引脚。

    Description

    paramLevel表示传参数时DC引脚的电平,如不特别设定,默认为1。

  • Optional rst?: GpioId | null

    RST引脚