Finalized

This commit is contained in:
regicidal.plutophage 2023-03-08 03:07:53 +03:00 committed by GitHub
parent 8c734e1952
commit f475adf23f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,6 @@ class Oled(Extension):
for view in self._views:
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[5] == OledEntryType.TXT:
splash.append(
@ -199,6 +198,11 @@ class Oled(Extension):
self._flip = self._flip_right
else:
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()
i2c = busio.I2C(keyboard.SCL, keyboard.SDA)
self._display = adafruit_displayio_ssd1306.SSD1306(