Documentation ¶
Index ¶
- type LPSPI
- func (dci *LPSPI) Cmd(p []byte, dataMode int)
- func (dci *LPSPI) Driver() *lpspi.Master
- func (dci *LPSPI) End()
- func (dci *LPSPI) Err(clear bool) error
- func (dci *LPSPI) ReadBytes(p []byte)
- func (dci *LPSPI) WriteByteN(b byte, n int)
- func (dci *LPSPI) WriteBytes(p []uint8)
- func (dci *LPSPI) WriteString(s string)
- func (dci *LPSPI) WriteWordN(w uint16, n int)
- func (dci *LPSPI) WriteWords(p []uint16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LPSPI ¶
type LPSPI struct {
// contains filtered or unexported fields
}
LPSPI is an implementation of the display/tft.DCI interface that uses an LPSPI peripheral to communicate with the display in what is known as 4-line serial mode.
func NewLPSPI ¶
NewLPSPI returns new LPSPI based implementation of tftdrv.DCI. User must provide a configured LPSPI master driver, a DC pin, the required SPI mode (CPOL,CPHA) amd the maximum write, read clock speeds according to the display controller specification. Note that the maximum speed may be limited by th LPSPI peripheral, the bus topology or the specific display design.
func (*LPSPI) WriteByteN ¶
func (*LPSPI) WriteBytes ¶
func (*LPSPI) WriteString ¶
func (*LPSPI) WriteWordN ¶
func (*LPSPI) WriteWords ¶
Click to show internal directories.
Click to hide internal directories.