platform: smart_leds: blank display on every frame
This commit is contained in:
parent
24f0a336e6
commit
d6e6f1c554
@ -56,6 +56,7 @@ S: Surface {
|
|||||||
|
|
||||||
impl<T: SmartLedsWrite<Color = Rgb<u8>>, S: Surface> Display<S> for SmartLedDisplay<T, S> {
|
impl<T: SmartLedsWrite<Color = Rgb<u8>>, S: Surface> Display<S> for SmartLedDisplay<T, S> {
|
||||||
fn start_frame(&mut self) {
|
fn start_frame(&mut self) {
|
||||||
|
self.pixbuf.fill(RGB8::new(0, 0, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn end_frame(&mut self) {
|
fn end_frame(&mut self) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user