@@ -20,7 +20,7 @@ Dependencies
20
20
=============
21
21
This driver depends on:
22
22
23
- * `Adafruit CircuitPython <https://github.com/adafruit/circuitpython >`_
23
+ * `Adafruit CircuitPython (version 5+) <https://github.com/adafruit/circuitpython >`_
24
24
25
25
Please ensure all dependencies are available on the CircuitPython filesystem.
26
26
This is easily achieved by downloading
@@ -31,9 +31,6 @@ Installing from PyPI
31
31
.. note :: This library is not available on PyPI yet. Install documentation is included
32
32
as a standard element. Stay tuned for PyPI availability!
33
33
34
- .. todo :: Remove the above note if PyPI version is/will be available at time of release.
35
- If the library is not planned for PyPI, remove the entire 'Installing from PyPI' section.
36
-
37
34
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
38
35
PyPI <https://pypi.org/project/adafruit-circuitpython-ssd1325/> `_. To install for current user:
39
36
@@ -59,7 +56,26 @@ To install in a virtual environment in your current project:
59
56
Usage Example
60
57
=============
61
58
62
- .. todo :: Add a quick, simple example. It and other examples should live in the examples folder and be included in docs/examples.rst.
59
+ .. code-block :: python
60
+
61
+ import time
62
+ import board
63
+ import busio
64
+ import displayio
65
+ import adafruit_ssd1325
66
+
67
+ displayio.release_displays()
68
+
69
+ # This pinout works on a Metro and may need to be altered for other boards.
70
+ spi = busio.SPI(board.SCL , board.SDA )
71
+ tft_cs = board.D9
72
+ tft_dc = board.D8
73
+ tft_reset = board.D7
74
+
75
+ display_bus = displayio.FourWire(spi, command = tft_dc, chip_select = tft_cs, reset = tft_reset,
76
+ baudrate = 1000000 )
77
+ time.sleep(1 )
78
+ display = adafruit_ssd1325.SSD1325(display_bus, width = 128 , height = 64 )
63
79
64
80
Contributing
65
81
============
0 commit comments