Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 636757f

Browse files
committed
Default implemention for TockMonochromScreen
1 parent 84db656 commit 636757f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/embedded_graphics_libtock/src/tock_screen.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ pub struct TockMonochromeScreen {
99
height: u32,
1010
}
1111

12+
impl Default for TockMonochromeScreen {
13+
fn default() -> Self {
14+
Self::new()
15+
}
16+
}
17+
1218
impl TockMonochromeScreen {
1319
pub fn new() -> Self {
1420
let (width, height) = Screen::get_resolution().unwrap_or((0, 0));

0 commit comments

Comments
 (0)