mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix other hosted mode
This commit is contained in:
parent
97efc2a162
commit
5d0c490a55
1 changed files with 2 additions and 1 deletions
|
|
@ -151,11 +151,12 @@ impl<'a> Oled128x128 {
|
|||
}
|
||||
|
||||
impl FrameBuffer for Oled128x128 {
|
||||
fn draw(&mut self) {
|
||||
fn draw(&mut self) -> Result<(), xous::Error> {
|
||||
for (index, pixel) in self.native_buffer.lock().unwrap().iter_mut().enumerate() {
|
||||
*pixel =
|
||||
if (self.buffer[index / 32] & (1 << (index % 32))) != 0 { DARK_COLOUR } else { LIGHT_COLOUR }
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn clear(&mut self) { self.buffer_mut().fill(0xFFFF_FFFF); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue