A fork of pulp-os for the xteink4 adding custom apps
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: rotation bug w/h inconsistency

hansmrtn e72c3540 441629b0

+4 -4
+3 -3
src/board.rs
··· 28 28 use ssd1677::{Interface, Display, Rotation, Builder, Dimensions}; 29 29 30 30 // Display 31 - pub const DISPLAY_WIDTH: u16 = 480; 32 - pub const DISPLAY_HEIGHT: u16 = 800; 31 + pub const DISPLAY_WIDTH: u16 = 800; 32 + pub const DISPLAY_HEIGHT: u16 = 480; 33 33 34 34 pub const FB_SIZE: usize = (DISPLAY_WIDTH as usize * DISPLAY_HEIGHT as usize) / 8; 35 35 ··· 150 150 151 151 let interface = Interface::new(spi_dev, dc, rst, busy); 152 152 153 - let dims = Dimensions::new(DISPLAY_WIDTH, DISPLAY_HEIGHT).unwrap(); 153 + let dims = Dimensions::new(DISPLAY_HEIGHT, DISPLAY_WIDTH).unwrap(); 154 154 let cfg = Builder::new() 155 155 .dimensions(dims) 156 156 .rotation(Rotation::Rotate270)
+1 -1
src/display.rs
··· 89 89 } 90 90 91 91 fn flush_inner(&mut self, mode: RefreshMode, delay: &mut Delay) { 92 - let region = Region::new(0, 0, DISPLAY_HEIGHT, DISPLAY_WIDTH); 92 + let region = Region::new(0, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT); 93 93 94 94 let update = UpdateRegion { 95 95 region,