File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 9
9
### Added
10
10
11
11
- [ #161 ] ( https://github.com/jamwaffles/ssd1306/pull/161 ) Added a ` set_mirror ` method to enable or disable display mirroring.
12
+ - [ #166 ] ( https://github.com/jamwaffles/ssd1306/pull/166 ) Added ` DisplaySize ` configuration for 64x32 displays
12
13
13
14
## [ 0.7.0] - 2021-07-08
14
15
Original file line number Diff line number Diff line change @@ -119,3 +119,18 @@ impl DisplaySize for DisplaySize64x48 {
119
119
Command :: ComPinConfig ( true , false ) . send ( iface)
120
120
}
121
121
}
122
+
123
+ /// Size information for the common 64x32 variants
124
+ #[ derive( Debug , Copy , Clone ) ]
125
+ pub struct DisplaySize64x32 ;
126
+ impl DisplaySize for DisplaySize64x32 {
127
+ const WIDTH : u8 = 64 ;
128
+ const HEIGHT : u8 = 32 ;
129
+ const OFFSETX : u8 = 32 ;
130
+ const OFFSETY : u8 = 0 ;
131
+ type Buffer = [ u8 ; Self :: WIDTH as usize * Self :: HEIGHT as usize / 8 ] ;
132
+
133
+ fn configure ( & self , iface : & mut impl WriteOnlyDataCommand ) -> Result < ( ) , DisplayError > {
134
+ Command :: ComPinConfig ( true , false ) . send ( iface)
135
+ }
136
+ }
You can’t perform that action at this time.
0 commit comments