Hi, I’m trying to detect primary, secondary and black/white colors in specific x-y pixel locations. If I have the 8-bit RGB values from get_pixel(x, y) I can just run it through
def convert_to_1bRGB(r, g, b):
return (r // 128, g // 128, b // 128)
and get a simple 1-bit RGB tuplet that seems to work fine for now where (0,0,0) = black, (1,1,1) = white, (0,0,0) = mostly blue, etc., etc.
How could I show the reduced 8-color palette on the LCD shield instead of RGB565?