From 8c38e8243d0b21eeed5ef4c675592747ebc85ac9 Mon Sep 17 00:00:00 2001 From: RetiredWizard Date: Mon, 6 Nov 2023 17:41:51 -0500 Subject: [PATCH] Replace depreciated .show() & displayio changes --- examples/ssd1675_2.13_monochrome.py | 4 ++-- examples/ssd1675_four_corners.py | 1 + examples/ssd1675_simpletest.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/ssd1675_2.13_monochrome.py b/examples/ssd1675_2.13_monochrome.py index 7f94ec0..468d410 100644 --- a/examples/ssd1675_2.13_monochrome.py +++ b/examples/ssd1675_2.13_monochrome.py @@ -12,6 +12,7 @@ import time import board import displayio import adafruit_ssd1675 + # Starting in CircuitPython 9.x fourwire will be a seperate internal library # rather than a component of the displayio library try: @@ -20,7 +21,6 @@ except ImportError: from displayio import FourWire - displayio.release_displays() # This pinout works on a Feather M4 and may need to be altered for other boards. @@ -52,7 +52,7 @@ with open("/display-ruler.bmp", "rb") as f: g.append(t) display.root_group = g - + display.refresh() print("refreshed") diff --git a/examples/ssd1675_four_corners.py b/examples/ssd1675_four_corners.py index 86ae29f..e58220d 100644 --- a/examples/ssd1675_four_corners.py +++ b/examples/ssd1675_four_corners.py @@ -15,6 +15,7 @@ import busio import displayio import terminalio import adafruit_ssd1675 + # Starting in CircuitPython 9.x fourwire will be a seperate internal library # rather than a component of the displayio library try: diff --git a/examples/ssd1675_simpletest.py b/examples/ssd1675_simpletest.py index 7ebf4a1..14e6929 100644 --- a/examples/ssd1675_simpletest.py +++ b/examples/ssd1675_simpletest.py @@ -12,6 +12,7 @@ import time import board import displayio import adafruit_ssd1675 + # Starting in CircuitPython 9.x fourwire will be a seperate internal library # rather than a component of the displayio library try: