Skip to content

Commit 6fb8145

Browse files
committed
1 parent 35af764 commit 6fb8145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_displayio_sh1107.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
import displayio
3030
from micropython import const
31-
import os
31+
import sys
3232

3333
__version__ = "0.0.0-auto.0"
3434
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SH1107.git"
@@ -67,7 +67,7 @@
6767

6868
# Sequence from sh1107 framebuf driver formatted for displayio init
6969
# we fixed sh110x addressing in 7, so we have slightly different setups
70-
if int(os.uname().release.split('.')[0]) < 7:
70+
if sys.implementation.version[0] < 7:
7171
_INIT_SEQUENCE = (
7272
b"\xae\x00" # display off, sleep mode
7373
b"\xdc\x01\x00" # display start line = 0 (POR = 0)

0 commit comments

Comments
 (0)