Update peg_oled_display.py

This commit is contained in:
regicidal.plutophage 2023-01-08 15:35:29 +03:00 committed by xs5871
parent 3238857e1e
commit b109cc2c4a

View File

@ -123,9 +123,9 @@ class Oled(Extension):
def on_runtime_disable(self, sandbox):
return
def during_bootup(self, board):
def during_bootup(self, keyboard):
displayio.release_displays()
i2c = busio.I2C(board.SCL, board.SDA)
i2c = busio.I2C(keyboard.SCL, keyboard.SDA)
self._display = adafruit_displayio_ssd1306.SSD1306(
displayio.I2CDisplay(i2c, device_address=0x3C),
width=self._width,