From 88683847822d1ae3372b0e95e8aa72c21f51a11c Mon Sep 17 00:00:00 2001 From: James Carr Date: Wed, 15 Sep 2021 21:34:42 +0100 Subject: [PATCH] Update sys.implementation checking so that Blinka uses the latest code --- adafruit_displayio_sh1107.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adafruit_displayio_sh1107.py b/adafruit_displayio_sh1107.py index 34199d1..39f9d34 100644 --- a/adafruit_displayio_sh1107.py +++ b/adafruit_displayio_sh1107.py @@ -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)