mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add a clear routine for the sh1107 frame buffer
This commit is contained in:
parent
2d8747605c
commit
091082dfcc
1 changed files with 2 additions and 0 deletions
|
|
@ -321,6 +321,8 @@ impl<'a> Oled128x128<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn clear(&mut self) { self.buffer_mut().fill(0); }
|
||||
|
||||
pub fn put_pixel(&mut self, x: u8, y: u8, on: bool) {
|
||||
if x > COLUMN || y > ROW {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue