X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fcommon%2Fscreen.rs;h=3b890a1847860b197021b7f284d24997a20800ea;hb=9a546fcb6aaae061f51546dd538883a99c419fce;hp=71425c40c0c14811f6eed0792250a04cb67133fa;hpb=9cef125c6dc3f96c4475d3b0064d4690ca2cb71e;p=gps-watch.git diff --git a/src/common/screen.rs b/src/common/screen.rs index 71425c4..3b890a1 100644 --- a/src/common/screen.rs +++ b/src/common/screen.rs @@ -29,6 +29,8 @@ pub const WIDTH_BYTES: usize = (WIDTH_PX as usize + 7) / 8; pub const SIZE_BYTES: usize = HEIGHT_PX as usize * WIDTH_BYTES; pub struct Screen { + // Each byte corresponds to 8 pixels, with the MSB referring + // to the left-most pixel. pixels: [u8; SIZE_BYTES], }