Documentation
¶
Index ¶
- type SPI
- func (dci *SPI) Cmd(p []byte, _ int)
- func (dci *SPI) Driver() *spi.Master
- func (dci *SPI) End()
- func (dci *SPI) Err(clear bool) error
- func (dci *SPI) ReadBytes(p []byte)
- func (dci *SPI) WriteByteN(b byte, n int)
- func (dci *SPI) WriteBytes(p []uint8)
- func (dci *SPI) WriteString(s string)
- func (dci *SPI) WriteWordN(w uint16, n int)
- func (dci *SPI) WriteWords(p []uint16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SPI ¶
type SPI struct {
// contains filtered or unexported fields
}
An SPI is an implementation of the tftdrv.DCI interface that uses an SPI peripheral to communicate with the display using the 4-line Serial Protocol.
func (*SPI) End ¶
func (dci *SPI) End()
End ends the SPI transaction. It sets CSn pin high, disables the SPI peripheral and unlocks the driver. Other usesrs of the same master driver can then take controll of the SPI bus locking the driver before use.
func (*SPI) WriteByteN ¶
func (*SPI) WriteBytes ¶
func (*SPI) WriteString ¶
func (*SPI) WriteWordN ¶
func (*SPI) WriteWords ¶
Click to show internal directories.
Click to hide internal directories.