Skip to content

Commit 633c3ee

Browse files
authored
Update battery_daughter.py to use new displayio bus module
1 parent 9b79a2e commit 633c3ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/dash_display_client_examples/battery_daughter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from adafruit_io.adafruit_io import IO_MQTT
1818
from adafruit_lc709203f import LC709203F
1919
from digitalio import DigitalInOut
20+
from i2cdisplaybus import I2CDisplayBus
2021

2122
displayio.release_displays()
2223

@@ -104,7 +105,7 @@ def message(client, feed_id, payload):
104105
print("Connecting to Adafruit IO...")
105106
io.connect()
106107

107-
display_bus = displayio.I2CDisplay(board.I2C(), device_address=0x3C)
108+
display_bus = I2CDisplayBus(board.I2C(), device_address=0x3C)
108109

109110
WIDTH = 128
110111
HEIGHT = 32

0 commit comments

Comments
 (0)