BD663474

WaveShare LCD22

The BD663474 as used in the WaveShare LCD22 is an SPI controlled device. The constructor for the driver is designed to work with the DSPI library for greatest flexibility and efficiency.

It is necessary to first create a suitable DSPI device corresponding to the SPI channel the screen is connected to. This is then passed to the constructor along with the pin numbers for Chip Select, Register Select and Reset. For instance:

#include <BD663474.h>
#include <DSPI.h>

// SPI channel 0, pin 8 is CS, pin 9 is RS and pin 10 is RESET
DSPI0 spi;
BD663474 tft(spi, 8, 9, 10);