@@ -36,17 +36,13 @@ This is easily achieved by downloading
36
36
or individual libraries can be installed using
37
37
`circup <https://github.com/adafruit/circup >`_.
38
38
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.
39
+ * `Waveshare 7.3" F <https://www.waveshare.com/7.3inch-e-paper-hat-f.htm >`_
41
40
42
- `Purchase one from the Adafruit shop <http://www.adafruit.com/products/ >`_
43
41
Installing from PyPI
44
42
=====================
45
43
.. note :: This library is not available on PyPI yet. Install documentation is included
46
44
as a standard element. Stay tuned for PyPI availability!
47
45
48
- .. todo :: Remove the above note if PyPI version is/will be available at time of release.
49
-
50
46
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
51
47
PyPI <https://pypi.org/project/adafruit-circuitpython-acep7in/> `_.
52
48
To install for current user:
@@ -96,8 +92,55 @@ Or the following command to update an existing version:
96
92
Usage Example
97
93
=============
98
94
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.
95
+ .. code-block :: python
96
+
97
+ # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
98
+ # SPDX-FileCopyrightText: Copyright (c) 2023 Scott Shawcroft for Adafruit Industries
99
+ # SPDX-FileCopyrightText: Copyright (c) 2021 Melissa LeBlanc-Williams for Adafruit Industries
100
+ #
101
+ # SPDX-License-Identifier: Unlicense
102
+
103
+ """ Simple test script for 5.6" 600x448 7-color ACeP display.
104
+ """
105
+ # pylint: disable=no-member
106
+
107
+ import time
108
+ import board
109
+ import displayio
110
+ import adafruit_acep7in
111
+
112
+ displayio.release_displays()
113
+
114
+ # This pinout works on a Feather RP2040 and may need to be altered for other boards.
115
+ spi = board.SPI() # Uses SCK and MOSI
116
+ epd_cs = board.D9
117
+ epd_dc = board.D10
118
+ epd_reset = board.D11
119
+ epd_busy = board.D12
120
+
121
+ display_bus = displayio.FourWire(
122
+ spi, command = epd_dc, chip_select = epd_cs, reset = epd_reset, baudrate = 1000000
123
+ )
124
+
125
+ display = adafruit_acep7in.ACeP7In(
126
+ display_bus, width = 800 , height = 480 , busy_pin = epd_busy
127
+ )
128
+
129
+ g = displayio.Group()
130
+
131
+ fn = " /display-ruler-720p.bmp"
132
+
133
+ with open (fn, " rb" ) as f:
134
+ pic = displayio.OnDiskBitmap(f)
135
+ t = displayio.TileGrid(pic, pixel_shader = pic.pixel_shader)
136
+ g.append(t)
137
+
138
+ display.show(g)
139
+
140
+ display.refresh()
141
+
142
+ time.sleep(120 )
143
+
101
144
102
145
Documentation
103
146
=============
0 commit comments