platform: clean up main.rs and split out hardware specific bits to platform module
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user