kopia lustrzana https://github.com/russhughes/st7789py_mpy
Fix color error in bitmap method
rodzic
ed10656969
commit
67b7306071
|
@ -878,8 +878,8 @@ class ST7789():
|
||||||
bs_bit += 1
|
bs_bit += 1
|
||||||
|
|
||||||
color = bitmap.PALETTE[color_index]
|
color = bitmap.PALETTE[color_index]
|
||||||
buffer[i] = color & 0xff00 >> 8
|
buffer[i] = color >> 8 & 0xff
|
||||||
buffer[i + 1] = color_index & 0xff
|
buffer[i + 1] = color & 0xff
|
||||||
|
|
||||||
to_col = x + bitmap.WIDTH - 1
|
to_col = x + bitmap.WIDTH - 1
|
||||||
to_row = y + bitmap.HEIGHT - 1
|
to_row = y + bitmap.HEIGHT - 1
|
||||||
|
|
Ładowanie…
Reference in New Issue