void pcd8544_set_polarity(PCD8544_DRIVER_t *self, int invert);
pcd8544_set_polarity sets the polarity of the display self to normal or inverted depending upon invert. If invert is non-zero, the display is inverted at the display controller level.
You can use this to flash the display.