Update peg_oled_display.py
This commit is contained in:
parent
3238857e1e
commit
b109cc2c4a
@ -123,9 +123,9 @@ class Oled(Extension):
|
|||||||
def on_runtime_disable(self, sandbox):
|
def on_runtime_disable(self, sandbox):
|
||||||
return
|
return
|
||||||
|
|
||||||
def during_bootup(self, board):
|
def during_bootup(self, keyboard):
|
||||||
displayio.release_displays()
|
displayio.release_displays()
|
||||||
i2c = busio.I2C(board.SCL, board.SDA)
|
i2c = busio.I2C(keyboard.SCL, keyboard.SDA)
|
||||||
self._display = adafruit_displayio_ssd1306.SSD1306(
|
self._display = adafruit_displayio_ssd1306.SSD1306(
|
||||||
displayio.I2CDisplay(i2c, device_address=0x3C),
|
displayio.I2CDisplay(i2c, device_address=0x3C),
|
||||||
width=self._width,
|
width=self._width,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user