tasks: display: docs++
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user