Finalized
This commit is contained in:
parent
8c734e1952
commit
f475adf23f
@ -149,7 +149,6 @@ class Oled(Extension):
|
|||||||
|
|
||||||
for view in self._views:
|
for view in self._views:
|
||||||
if self._dark is False:
|
if self._dark is False:
|
||||||
if view[3] == self.split_side or view[3] is None:
|
|
||||||
if view[4] == layer or view[4] is None:
|
if view[4] == layer or view[4] is None:
|
||||||
if view[5] == OledEntryType.TXT:
|
if view[5] == OledEntryType.TXT:
|
||||||
splash.append(
|
splash.append(
|
||||||
@ -199,6 +198,11 @@ class Oled(Extension):
|
|||||||
self._flip = self._flip_right
|
self._flip = self._flip_right
|
||||||
else:
|
else:
|
||||||
self.split_side = None
|
self.split_side = None
|
||||||
|
|
||||||
|
for idx, view in enumerate(self._views):
|
||||||
|
if view[3] != self.split_side and view[3] is not None:
|
||||||
|
del self._views[idx]
|
||||||
|
|
||||||
displayio.release_displays()
|
displayio.release_displays()
|
||||||
i2c = busio.I2C(keyboard.SCL, keyboard.SDA)
|
i2c = busio.I2C(keyboard.SCL, keyboard.SDA)
|
||||||
self._display = adafruit_displayio_ssd1306.SSD1306(
|
self._display = adafruit_displayio_ssd1306.SSD1306(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user