Merge pull request #1 from adafruit/cleanup
Some checks failed
Build CI / test (push) Has been cancelled

add display ruler bitmap
This commit is contained in:
Liz 2025-08-05 19:42:10 -04:00 committed by GitHub
commit b6f385ea1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 17 deletions

View file

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

View file

@ -119,7 +119,7 @@ class JD79661(EPaperDisplay):
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,

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

View file

@ -0,0 +1,2 @@
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT

View file

@ -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 @@ import adafruit_jd79661
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)