How do you make a display invert?
pierpe83 opened this issue · 2 comments
pierpe83 commented
Is the invert function available in this library?
If so, how do you call it in the code?
mattncsu commented
colorSwap(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color1, uint16_t color2)
Give it a rectangle and the colors to swap. For example, in my code I invert the top 20 pixels of the display (from black on white to white on black) like this:
gfx.colorSwap(0,0,gfx.getWidth(),20,0,1);
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.