platform: clean up main.rs and split out hardware specific bits to platform module

This commit is contained in:
2024-10-29 11:51:25 +01:00
parent 8426f0b0e5
commit 62f09ac1f3
4 changed files with 113 additions and 89 deletions

View File

@@ -76,7 +76,7 @@ impl<T: SmartLedsWrite<Color = Rgb<u8>>, S: Surface> Display<S> for SmartLedDisp
}
fn render_frame(&mut self) {
for x in (0..self.pixbuf.len()) {
for x in 0..self.pixbuf.len() {
let virtCoords = VirtualCoordinates::new(x as u8, 0);
let mut pixel = RGB8::new(0, 0, 0);
for surface in self.surfaces.iter() {