oled: split out the ssd1306 driver into its own module, and reimplement the oled design with separate rendering and drawing tasks
This commit is contained in:
@@ -84,7 +84,7 @@ impl Animation {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn apply<S: AnimationActor + Debug>(&self, sfc: &mut S) {
|
||||
pub async fn apply<S: AnimationActor>(&self, sfc: &mut S) {
|
||||
let from = if let Some(val) = self.from {
|
||||
val
|
||||
} else {
|
||||
@@ -100,7 +100,7 @@ impl Animation {
|
||||
return;
|
||||
}
|
||||
let step_time = self.duration / steps.into();
|
||||
trace!("fade={self:?} steps={steps} time={step_time} sfc={sfc:?}");
|
||||
trace!("fade={self:?} steps={steps} time={step_time}");
|
||||
if from > to {
|
||||
let range = (to..=from).rev();
|
||||
for opacity in range {
|
||||
|
||||
Reference in New Issue
Block a user