diff --git a/README.rst b/README.rst index 5ce1242..bd206a4 100644 --- a/README.rst +++ b/README.rst @@ -95,7 +95,6 @@ Usage Example import time import board - import busio import displayio from fourwire import FourWire @@ -103,12 +102,11 @@ Usage Example displayio.release_displays() - # This pinout works on a MagTag with the newer screen and may need to be altered for other boards. - spi = busio.SPI(board.EPD_SCK, board.EPD_MOSI) # Uses SCK and MOSI - epd_cs = board.EPD_CS - epd_dc = board.EPD_DC - epd_reset = board.EPD_RESET - epd_busy = board.EPD_BUSY + spi = board.SPI() + epd_cs = board.D9 + epd_dc = board.D10 + epd_reset = board.D6 + epd_busy = board.D5 display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000) time.sleep(1) diff --git a/adafruit_jd79661.py b/adafruit_jd79661.py index 8ca41c1..d5ccb2c 100644 --- a/adafruit_jd79661.py +++ b/adafruit_jd79661.py @@ -119,7 +119,7 @@ def __init__(self, bus: FourWire, **kwargs) -> None: start_sequence[res_pos + 4] = (width >> 8) & 0xFF start_sequence[res_pos + 5] = width & 0xFF - print(start_sequence.hex(" ")) + # print(start_sequence.hex(" ")) super().__init__( bus, diff --git a/examples/display-ruler-640x360.bmp b/examples/display-ruler-640x360.bmp new file mode 100644 index 0000000..a9c776e Binary files /dev/null and b/examples/display-ruler-640x360.bmp differ diff --git a/examples/display-ruler-640x360.bmp.license b/examples/display-ruler-640x360.bmp.license new file mode 100644 index 0000000..a784acf --- /dev/null +++ b/examples/display-ruler-640x360.bmp.license @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries +# SPDX-License-Identifier: MIT diff --git a/examples/jd79661_simpletest.py b/examples/jd79661_simpletest.py index 8e690d4..bd50791 100644 --- a/examples/jd79661_simpletest.py +++ b/examples/jd79661_simpletest.py @@ -1,14 +1,12 @@ # SPDX-FileCopyrightText: 2025 Scott Shawcroft, written for Adafruit Industries -# SPDX-FileCopyrightText: Copyright (c) 2021 Melissa LeBlanc-Williams for Adafruit Industries # # SPDX-License-Identifier: Unlicense -"""Simple test script for 2.9" 296x128 display. This example runs it in mono mode.""" +"""Simple test script for 2.13" Quad Color Display""" import time import board -import busio import displayio from fourwire import FourWire @@ -16,12 +14,11 @@ displayio.release_displays() -# This pinout works on a MagTag with the newer screen and may need to be altered for other boards. -spi = busio.SPI(board.EPD_SCK, board.EPD_MOSI) # Uses SCK and MOSI -epd_cs = board.EPD_CS -epd_dc = board.EPD_DC -epd_reset = board.EPD_RESET -epd_busy = board.EPD_BUSY +spi = board.SPI() +epd_cs = board.D9 +epd_dc = board.D10 +epd_reset = board.D6 +epd_busy = board.D5 display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000) time.sleep(1)