mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +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) {
|
pub fn put_pixel(&mut self, x: u8, y: u8, on: bool) {
|
||||||
if x > COLUMN || y > ROW {
|
if x > COLUMN || y > ROW {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue