@@ -21,8 +21,9 @@ Introduction
21
21
:target: https://github.com/psf/black
22
22
:alt: Code Style: Black
23
23
24
- Driver for SPD1656 driven ACeP (7-color) e-paper displays
24
+ Driver for SPD1656 driven ACeP (7-color) e-paper displays.
25
25
26
+ Please note that we do not have Blinka support for this yet. So it won't work with a Raspberry Pi.
26
27
27
28
Dependencies
28
29
=============
@@ -36,17 +37,18 @@ This is easily achieved by downloading
36
37
or individual libraries can be installed using
37
38
`circup <https://github.com/adafruit/circup >`_.
38
39
39
- .. todo :: Describe the Adafruit product this library works with. For PCBs, you can also add the
40
- image from the assets folder in the PCB's GitHub repo.
40
+ This supports the common 4" and 5.65" ACeP displays.
41
+
42
+ * [Waveshare 4"](https://www.waveshare.com/4.01inch-e-paper-hat-f.htm)
43
+ * [Waveshare 5.65"](https://www.waveshare.com/5.65inch-e-paper-module-f.htm)
44
+ * [Pimoroni 5.7"](https://shop.pimoroni.com/products/inky-impression-5-7) (Likely the same as 5.65".)
45
+ * [Pimoroni 4"](https://shop.pimoroni.com/products/inky-impression-4)
41
46
42
- `Purchase one from the Adafruit shop <http://www.adafruit.com/products/ >`_
43
47
Installing from PyPI
44
48
=====================
45
49
.. note :: This library is not available on PyPI yet. Install documentation is included
46
50
as a standard element. Stay tuned for PyPI availability!
47
51
48
- .. todo :: Remove the above note if PyPI version is/will be available at time of release.
49
-
50
52
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
51
53
PyPI <https://pypi.org/project/adafruit-circuitpython-spd1656/> `_.
52
54
To install for current user:
@@ -96,8 +98,53 @@ Or the following command to update an existing version:
96
98
Usage Example
97
99
=============
98
100
99
- .. todo :: Add a quick, simple example. It and other examples should live in the
100
- examples folder and be included in docs/examples.rst.
101
+ .. code-block :: python
102
+
103
+ # SPDX-FileCopyrightText: Copyright (c) 2023 Scott Shawcroft for Adafruit Industries
104
+ # SPDX-FileCopyrightText: Copyright (c) 2021 Melissa LeBlanc-Williams for Adafruit Industries
105
+ #
106
+ # SPDX-License-Identifier: Unlicense
107
+
108
+ """ Simple test script for 5.6" 600x448 7-color ACeP display.
109
+ """
110
+ # pylint: disable=no-member
111
+
112
+ import time
113
+ import board
114
+ import displayio
115
+ import adafruit_spd1656
116
+
117
+ displayio.release_displays()
118
+
119
+ # This pinout works on a Feather RP2040 and may need to be altered for other boards.
120
+ spi = board.SPI() # Uses SCK and MOSI
121
+ epd_cs = board.D9
122
+ epd_dc = board.D10
123
+ epd_reset = board.D11
124
+ epd_busy = board.D12
125
+
126
+ display_bus = displayio.FourWire(
127
+ spi, command = epd_dc, chip_select = epd_cs, reset = epd_reset, baudrate = 1000000
128
+ )
129
+
130
+ display = adafruit_spd1656.SPD1656(
131
+ display_bus, width = 600 , height = 448 , busy_pin = epd_busy
132
+ )
133
+
134
+ g = displayio.Group()
135
+
136
+ fn = " /display-ruler-720p.bmp"
137
+
138
+ with open (fn, " rb" ) as f:
139
+ pic = displayio.OnDiskBitmap(f)
140
+ t = displayio.TileGrid(pic, pixel_shader = pic.pixel_shader)
141
+ g.append(t)
142
+
143
+ display.show(g)
144
+
145
+ display.refresh()
146
+
147
+ time.sleep(120 )
101
148
102
149
Documentation
103
150
=============
0 commit comments