Skip to content

Commit 8868384

Browse files
Update sys.implementation checking so that Blinka uses the latest code
1 parent 1837b47 commit 8868384

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_displayio_sh1107.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868

6969
# Sequence from sh1107 framebuf driver formatted for displayio init
7070
# we fixed sh110x addressing in 7, so we have slightly different setups
71-
if sys.implementation.version[0] < 7:
71+
if sys.implementation.name == "circuitpython" and sys.implementation.version[0] < 7:
72+
# if sys.implementation.version[0] < 7:
7273
_INIT_SEQUENCE = (
7374
b"\xae\x00" # display off, sleep mode
7475
b"\xdc\x01\x00" # display start line = 0 (POR = 0)

0 commit comments

Comments
 (0)