Skip to content

Commit e7028dc

Browse files
authored
Merge pull request #29 from adafruit/dhalbert-patch-1
Update README.rst to use new displayio modules
2 parents 6c2f84d + 19030c6 commit e7028dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ Usage Example
6464
import displayio
6565
import terminalio
6666
import bitmap_label as label # from adafruit_display_text
67+
from i2cdisplaybus import I2CDisplayBus
6768
import adafruit_displayio_sh1107
6869
6970
displayio.release_displays()
7071
#oled_reset = board.D9
7172
7273
# Use for I2C
7374
i2c = board.I2C()
74-
display_bus = displayio.I2CDisplay(i2c, device_address=0x3C)
75+
display_bus = I2CDisplayBus(i2c, device_address=0x3C)
7576
7677
# SH1107 is vertically oriented 64x128
7778
WIDTH = 128

0 commit comments

Comments
 (0)