mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-17 21:23:58 +00:00
hub75: fix data buffering
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ func (d *Device) fillMatrixBuffer(x int16, y int16, r uint8, g uint8, b uint8) {
|
|||||||
if r > colorTresh {
|
if r > colorTresh {
|
||||||
d.buffer[c][offsetR] |= 1 << bitSelect
|
d.buffer[c][offsetR] |= 1 << bitSelect
|
||||||
} else {
|
} else {
|
||||||
d.buffer[c][offsetR] = d.buffer[c][offsetR] &^ 1 << bitSelect
|
d.buffer[c][offsetR] &^= 1 << bitSelect
|
||||||
}
|
}
|
||||||
if g > colorTresh {
|
if g > colorTresh {
|
||||||
d.buffer[(c+d.colorThirdStep)%d.colorDepth][offsetG] |= 1 << bitSelect
|
d.buffer[(c+d.colorThirdStep)%d.colorDepth][offsetG] |= 1 << bitSelect
|
||||||
|
|||||||
Reference in New Issue
Block a user