Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Jul 9, 2021
1 parent 35af764 commit 6fb8145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_displayio_sh1107.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import displayio
from micropython import const
import os
import sys

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SH1107.git"
Expand Down Expand Up @@ -67,7 +67,7 @@

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

0 comments on commit 6fb8145

Please sign in to comment.