Replace depreciated .show() & displayio changes

This commit is contained in:
RetiredWizard 2023-11-06 17:41:51 -05:00
parent 1bae65cec6
commit 8c38e8243d
3 changed files with 4 additions and 2 deletions

View file

@ -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")

View file

@ -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:

View file

@ -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: