Skip to content

Commit 6ef157d

Browse files
committed
lint
1 parent b878c70 commit 6ef157d

File tree

2 files changed

+50
-9
lines changed

2 files changed

+50
-9
lines changed

README.rst

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ Installing from PyPI
4545
.. note:: This library is not available on PyPI yet. Install documentation is included
4646
as a standard element. Stay tuned for PyPI availability!
4747

48-
.. todo:: Remove the above note if PyPI version is/will be available at time of release.
49-
5048
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
5149
PyPI <https://pypi.org/project/adafruit-circuitpython-acep7in/>`_.
5250
To install for current user:
@@ -96,8 +94,55 @@ Or the following command to update an existing version:
9694
Usage Example
9795
=============
9896

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.
97+
.. code-block:: python
98+
99+
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
100+
# SPDX-FileCopyrightText: Copyright (c) 2023 Scott Shawcroft for Adafruit Industries
101+
# SPDX-FileCopyrightText: Copyright (c) 2021 Melissa LeBlanc-Williams for Adafruit Industries
102+
#
103+
# SPDX-License-Identifier: Unlicense
104+
105+
"""Simple test script for 5.6" 600x448 7-color ACeP display.
106+
"""
107+
# pylint: disable=no-member
108+
109+
import time
110+
import board
111+
import displayio
112+
import adafruit_acep7in
113+
114+
displayio.release_displays()
115+
116+
# This pinout works on a Feather RP2040 and may need to be altered for other boards.
117+
spi = board.SPI() # Uses SCK and MOSI
118+
epd_cs = board.D9
119+
epd_dc = board.D10
120+
epd_reset = board.D11
121+
epd_busy = board.D12
122+
123+
display_bus = displayio.FourWire(
124+
spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
125+
)
126+
127+
display = adafruit_acep7in.ACeP7In(
128+
display_bus, width=800, height=480, busy_pin=epd_busy
129+
)
130+
131+
g = displayio.Group()
132+
133+
fn = "/display-ruler-720p.bmp"
134+
135+
with open(fn, "rb") as f:
136+
pic = displayio.OnDiskBitmap(f)
137+
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
138+
g.append(t)
139+
140+
display.show(g)
141+
142+
display.refresh()
143+
144+
time.sleep(120)
145+
101146
102147
Documentation
103148
=============

docs/index.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@ Table of Contents
2424
.. toctree::
2525
:caption: Tutorials
2626

27-
.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
28-
the toctree above for use later.
29-
3027
.. toctree::
3128
:caption: Related Products
3229

33-
.. todo:: Add any product links here. If there are none, then simply delete this todo and leave
34-
the toctree above for use later.
30+
Waveshare 7.3" F <https://www.waveshare.com/7.3inch-e-paper-hat-f.htm>
3531

3632
.. toctree::
3733
:caption: Other Links

0 commit comments

Comments
 (0)