void pcd8544_setup_begin_spi(PCD8544_DRIVER_t *self,
                             CTL_SPI_DEVICE_t *dev);

pcd8544_setup_begin_spi starts the initialization of the PCD8544 display self using SPI device dev. The client is responsible for initializing the set_dc_state and set_reset_state methods and attaching dev to the appropriate SPI bus before calling pcd8544_setup_end.

The SPI device is initialized to communicate at 1 MHz. You can raise the bit rate when this function returns (up to 4 MHz for the standard controller).

By default, the PCD8544 is initialized to positive polarity for a monochrome display where the background is initialized to white and writing a one bit will turn a pixel to black.