Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SPIM ¶
type SPIM struct {
// contains filtered or unexported fields
}
SPIM is an implementation of the tftdrv.DCI that uses an SPIM peripheral to communicate with the display in what is known as 4-line serial mode.
func NewSPIM ¶
NewSPIM returns new SPI based implementation of tftdrv.DCI. It properly configures the provided SPI driver and DC pin to communicate with a display controller. Select the SPI mode (CPOL,CPHA), write and read clock speed according to the display controller specification. Note that the maximum speed may be limited by the concrete instance of nRF5 SPI peripheral, the bus topology and the specific display design.
func (*SPIM) UseCSN ¶
UseCSN selects csn as slave select pin. If reconf is true the SPI peripheral is reconfigured by any Cmd call so it can be shared with other applications (exclusive acces is required until End call).