I might be going crazy but it seems like the Python library for addressing pixels for the Unicorn Phat is messed up… either that or there is something odd about my phat.
If I use this code to light up the corner pixels:
import unicornhat as uh
uh.set_pixel(0,7,0,255,0) # green
uh.set_pixel(3,7,255,255,0) # yellow
uh.set_pixel(3,0,0,0,255) # blue
I get this - the opposite corners are the wrong way round. If red is 0,0 then there’s no way blue (3,0) should be opposite:
If I try the same code with an old school UnicornHAT it works correctly:
or am I missing something?