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:
2025-10-25 17:51:03 +02:00
parent db912e0085
commit 27e92edef0
9 changed files with 412 additions and 129 deletions

View File

@@ -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 {