We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7036bb7 commit aa8bbdaCopy full SHA for aa8bbda
adafruit_displayio_sh1107.py
@@ -122,7 +122,6 @@
122
b"\xaf\x00" # DISPLAY_ON
123
)
124
_PIXELS_IN_ROW = True
125
- _ROTATION_OFFSET = 0
126
else:
127
_INIT_SEQUENCE = (
128
b"\xae\x00" # display off, sleep mode
@@ -142,7 +141,6 @@
142
141
143
144
_PIXELS_IN_ROW = False
145
- _ROTATION_OFFSET = 90
146
147
148
class SH1107(Display):
@@ -163,10 +161,9 @@ def __init__(
163
161
self,
164
162
bus: Union[I2CDisplayBus, FourWire],
165
display_offset: int = DISPLAY_OFFSET_ADAFRUIT_FEATHERWING_OLED_4650,
166
- rotation: int = 0,
+ rotation: int = 90,
167
**kwargs
168
) -> None:
169
- rotation = (rotation + _ROTATION_OFFSET) % 360
170
if rotation in (0, 180):
171
multiplex = kwargs["width"] - 1
172
0 commit comments