@@ -36,19 +36,10 @@ This is easily achieved by downloading
3636or individual libraries can be installed using
3737`circup <https://github.com/adafruit/circup >`_.
3838
39-
40-
41- .. todo :: Describe the Adafruit product this library works with. For PCBs, you can also add the
42- image from the assets folder in the PCB's GitHub repo.
43-
4439`Purchase one from the Adafruit shop <http://www.adafruit.com/products/6373 >`_
4540
4641Installing from PyPI
4742=====================
48- .. note :: This library is not available on PyPI yet. Install documentation is included
49- as a standard element. Stay tuned for PyPI availability!
50-
51- .. todo :: Remove the above note if PyPI version is/will be available at time of release.
5243
5344On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
5445PyPI <https://pypi.org/project/adafruit-circuitpython-jd79667/> `_.
@@ -99,8 +90,36 @@ Or the following command to update an existing version:
9990 Usage Example
10091=============
10192
102- .. todo :: Add a quick, simple example. It and other examples should live in the
103- examples folder and be included in docs/examples.rst.
93+ .. code-block :: python
94+
95+ import board
96+ import busio
97+ import displayio
98+ from fourwire import FourWire
99+
100+ import adafruit_jd79667
101+
102+ displayio.release_displays()
103+
104+ spi = busio.SPI(board.EPD_SCK , board.EPD_MOSI ) # Uses SCK and MOSI
105+ epd_cs = board.EPD_CS
106+ epd_dc = board.EPD_DC
107+ epd_reset = board.EPD_RESET
108+ epd_busy = board.EPD_BUSY
109+
110+ display_bus = FourWire(spi, command = epd_dc, chip_select = epd_cs, reset = epd_reset, baudrate = 1000000 )
111+ time.sleep(1 )
112+
113+ display = adafruit_jd79667.JD79667(
114+ display_bus,
115+ width = 384 ,
116+ height = 184 ,
117+ busy_pin = epd_busy,
118+ rotation = 270 ,
119+ colstart = 0 ,
120+ highlight_color = 0x FFFF00 ,
121+ highlight_color2 = 0x FF0000 ,
122+ )
104123
105124 Documentation
106125=============
0 commit comments