Skip to content

Commit c4dd550

Browse files
committed
add display ruler bitmap
1 parent a491bb8 commit c4dd550

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

README.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,18 @@ Usage Example
9595
import time
9696
9797
import board
98-
import busio
9998
import displayio
10099
from fourwire import FourWire
101100
102101
import adafruit_jd79661
103102
104103
displayio.release_displays()
105104
106-
# This pinout works on a MagTag with the newer screen and may need to be altered for other boards.
107-
spi = busio.SPI(board.EPD_SCK, board.EPD_MOSI) # Uses SCK and MOSI
108-
epd_cs = board.EPD_CS
109-
epd_dc = board.EPD_DC
110-
epd_reset = board.EPD_RESET
111-
epd_busy = board.EPD_BUSY
105+
spi = board.SPI()
106+
epd_cs = board.D9
107+
epd_dc = board.D10
108+
epd_reset = board.D6
109+
epd_busy = board.D5
112110
113111
display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000)
114112
time.sleep(1)

adafruit_jd79661.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init__(self, bus: FourWire, **kwargs) -> None:
119119
start_sequence[res_pos + 4] = (width >> 8) & 0xFF
120120
start_sequence[res_pos + 5] = width & 0xFF
121121

122-
print(start_sequence.hex(" "))
122+
# print(start_sequence.hex(" "))
123123

124124
super().__init__(
125125
bus,

examples/display-ruler-640x360.bmp

225 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
# SPDX-License-Identifier: MIT

examples/jd79661_simpletest.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
# SPDX-FileCopyrightText: 2025 Scott Shawcroft, written for Adafruit Industries
2-
# SPDX-FileCopyrightText: Copyright (c) 2021 Melissa LeBlanc-Williams for Adafruit Industries
32
#
43
# SPDX-License-Identifier: Unlicense
54

6-
"""Simple test script for 2.9" 296x128 display. This example runs it in mono mode."""
5+
"""Simple test script for 2.13" Quad Color Display"""
76

87
import time
98

109
import board
11-
import busio
1210
import displayio
1311
from fourwire import FourWire
1412

1513
import adafruit_jd79661
1614

1715
displayio.release_displays()
1816

19-
# This pinout works on a MagTag with the newer screen and may need to be altered for other boards.
20-
spi = busio.SPI(board.EPD_SCK, board.EPD_MOSI) # Uses SCK and MOSI
21-
epd_cs = board.EPD_CS
22-
epd_dc = board.EPD_DC
23-
epd_reset = board.EPD_RESET
24-
epd_busy = board.EPD_BUSY
17+
spi = board.SPI()
18+
epd_cs = board.D9
19+
epd_dc = board.D10
20+
epd_reset = board.D6
21+
epd_busy = board.D5
2522

2623
display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000)
2724
time.sleep(1)

0 commit comments

Comments
 (0)