tasks: oled: update to new figments crates
This commit is contained in:
@@ -9,10 +9,10 @@ use log::*;
|
||||
use crate::{animation::Animation, events::{Personality, Prediction}, graphics::{display::DisplayControls, oled_ui::{OledUniforms, Screen}}};
|
||||
|
||||
#[cfg(feature="oled")]
|
||||
pub type OledUiSurfacePool = figments::surface::BufferedSurfacePool<OledUniforms, Matrix2DSpace, BinaryColor>;
|
||||
pub type OledUiSurfacePool = figments::surfaces::buffered::BufferedSurfacePool<OledUniforms, Matrix2DSpace, BinaryColor>;
|
||||
|
||||
#[cfg(not(feature="oled"))]
|
||||
pub type OledUiSurfacePool = figments::surface::NullBufferPool<OledUniforms, Matrix2DSpace, BinaryColor>;
|
||||
pub type OledUiSurfacePool = figments::surfaces::null::NullBufferPool<OledUniforms, Matrix2DSpace, BinaryColor>;
|
||||
|
||||
type OledSurface = <OledUiSurfacePool as Surfaces>::Surface;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user