Skip to content

Commit

Permalink
Merge pull request #10 from lesamouraipourpre/cpython
Browse files Browse the repository at this point in the history
Use latest configuration on Blinka
  • Loading branch information
tannewt authored Sep 20, 2021
2 parents 41014aa + 56cac7a commit f9d10f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adafruit_displayio_sh1107.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@

# Sequence from sh1107 framebuf driver formatted for displayio init
# we fixed sh110x addressing in 7, so we have slightly different setups
if sys.implementation.version[0] < 7:
if sys.implementation.name == "circuitpython" and sys.implementation.version[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 f9d10f3

Please sign in to comment.