From b06450917bee3a345d820ae7ae2d89335545d734 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Fri, 30 May 2025 14:21:13 -0500 Subject: [PATCH 1/3] displayio API update --- examples/imageload_netpbm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/imageload_netpbm.py b/examples/imageload_netpbm.py index 06ca3f1..13c9b58 100644 --- a/examples/imageload_netpbm.py +++ b/examples/imageload_netpbm.py @@ -15,6 +15,7 @@ import adafruit_ili9341 import board import displayio +import fourwire import adafruit_imageload @@ -23,7 +24,7 @@ tft_dc = board.D10 displayio.release_displays() -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 = adafruit_ili9341.ILI9341(display_bus, width=320, height=240) From 0dbfcf122ccea1af94f5768279aabc0f1dada7fb Mon Sep 17 00:00:00 2001 From: foamyguy Date: Fri, 30 May 2025 14:37:17 -0500 Subject: [PATCH 2/3] fix mock Bitmap interface for tests --- tests/displayio_shared_bindings.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/displayio_shared_bindings.py b/tests/displayio_shared_bindings.py index 5d796d7..d938e6c 100644 --- a/tests/displayio_shared_bindings.py +++ b/tests/displayio_shared_bindings.py @@ -50,6 +50,13 @@ def __init__(self, width: int, height: int, colors: int) -> None: self.height = height self.colors = colors self.data = {} + bits = 1 + while (colors - 1) >> bits: + if bits < 8: + bits = bits << 1 + else: + bits += 8 + self._bits_per_value = bits def _abs_pos(self, width: int, height: int) -> int: if height >= self.height: From 135b0e4478b34e1271e6bd87fa6d8efa0bef64b5 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Wed, 4 Jun 2025 10:00:20 -0500 Subject: [PATCH 3/3] update rtd.yml file Signed-off-by: foamyguy --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 88bca9f..255dafd 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -12,7 +12,7 @@ sphinx: configuration: docs/conf.py build: - os: ubuntu-20.04 + os: ubuntu-lts-latest tools: python: "3" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy