This recipe will demonstrate how to use the invert feature to flip the color of all the pixels. This can be used for when you are displaying white text on a black background, and then want the colors to be flipped so that the screen shows black text on a white background. A number of key operations on the display, such as clearing the screen, can be quite slow compared to features such as invert. We can take advantage of these performance differences to use invert when we want fast, visual feedback to appear to people using the screen.
This recipe will help you whenever you are creating a project using a slow microcontroller and you need to find creative ways to make the device more responsive so that you can improve its usability.