From 7cdfdc69fdd12de75ce5597559e16c03b710cac3 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Sat, 31 May 2025 10:58:20 -0500 Subject: [PATCH] displayio api updates --- examples/bitmapsaver_screenshot_tft_featherwing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/bitmapsaver_screenshot_tft_featherwing.py b/examples/bitmapsaver_screenshot_tft_featherwing.py index 2f69bd4..fe187f4 100644 --- a/examples/bitmapsaver_screenshot_tft_featherwing.py +++ b/examples/bitmapsaver_screenshot_tft_featherwing.py @@ -7,6 +7,7 @@ import board import digitalio import displayio +import fourwire import storage from adafruit_hx8357 import HX8357 @@ -26,7 +27,7 @@ # Initialize TFT Featherwing Display tft_cs = board.D9 tft_dc = board.D10 -display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs) +display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs) display = HX8357(display_bus, width=DISPLAY_WIDTH, height=DISPLAY_HEIGHT) if TAKE_SCREENSHOT: