tasks: display: docs++

This commit is contained in:
2026-03-09 10:10:30 +01:00
parent c9518498f2
commit 3479fd1bf8

View File

@@ -3,7 +3,6 @@ use figments::{liber8tion::interpolate::Fract8, prelude::*};
use core::{fmt::Debug, ops::Mul, sync::atomic::{AtomicBool, AtomicU8}}; use core::{fmt::Debug, ops::Mul, sync::atomic::{AtomicBool, AtomicU8}};
use alloc::sync::Arc; use alloc::sync::Arc;
//use super::{Output};
use figments_render::{ use figments_render::{
gamma::{GammaCurve, WithGamma}, output::{Brightness, GammaCorrected, Output, OutputAsync}, power::AsMilliwatts, smart_leds::PowerManagedWriter gamma::{GammaCurve, WithGamma}, output::{Brightness, GammaCorrected, Output, OutputAsync}, power::AsMilliwatts, smart_leds::PowerManagedWriter
}; };
@@ -63,7 +62,6 @@ impl<'a, T: SmartLedsWriteAsync + 'a> OutputAsync<'a, SegmentSpace> for BikeOutp
self.writer.write_async(&self.pixbuf).await self.writer.write_async(&self.pixbuf).await
} }
//type HardwarePixel = T::Color;
type Error = T::Error; type Error = T::Error;
type Controls = DisplayControls; type Controls = DisplayControls;
@@ -109,7 +107,6 @@ impl<'a, T> Sample<'a, SegmentSpace> for [T; NUM_PIXELS] where T: 'static {
} }
} }
#[derive(Clone, Copy, Default, Debug)] #[derive(Clone, Copy, Default, Debug)]
pub struct SegmentSpace {} pub struct SegmentSpace {}
impl CoordinateSpace for SegmentSpace { impl CoordinateSpace for SegmentSpace {