double-buffer order: GRB
This commit is contained in:
parent
617822b493
commit
a3038b255b
@ -126,8 +126,9 @@ public:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
buffer[index] = {
|
buffer[index] = {
|
||||||
(uint8_t) (color.r * brightness >> 8),
|
// yes, correct order is GRB !!!
|
||||||
(uint8_t) (color.g * brightness >> 8),
|
(uint8_t) (color.g * brightness >> 8),
|
||||||
|
(uint8_t) (color.r * brightness >> 8),
|
||||||
(uint8_t) (color.b * brightness >> 8)
|
(uint8_t) (color.b * brightness >> 8)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user