@@ -28,64 +28,44 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
28
28
This is easily achieved by downloading
29
29
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle >`_.
30
30
31
- Usage Example
32
- =============
31
+ Installing from PyPI
32
+ ====================
33
33
34
- see examples/neotrellis_simpletest.py for usage example
35
-
36
- Contributing
37
- ============
38
-
39
- Contributions are welcome! Please read our `Code of Conduct
40
- <https://github.com/adafruit/Adafruit_CircuitPython_NeoTrellis/blob/master/CODE_OF_CONDUCT.md> `_
41
- before contributing to help this project stay welcoming.
42
-
43
- Building locally
44
- ================
45
-
46
- Zip release files
47
- -----------------
48
-
49
- To build this library locally you'll need to install the
50
- `circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools >`_ package.
34
+ On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
35
+ PyPI <https://pypi.org/project/adafruit-circuitpython-neotrellis/> `_. To install for current user:
51
36
52
37
.. code-block :: shell
53
38
54
- python3 -m venv .env
55
- source .env/bin/activate
56
- pip install circuitpython-build-tools
39
+ pip3 install adafruit-circuitpython-neotrellis
57
40
58
- Once installed, make sure you are in the virtual environment :
41
+ To install system-wide (this may be required in some cases) :
59
42
60
43
.. code-block :: shell
61
44
62
- source .env/bin/activate
45
+ sudo pip3 install adafruit-circuitpython-neotrellis
63
46
64
- Then run the build:
65
-
66
- .. code-block :: shell
67
-
68
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-neotrellis --library_location .
69
-
70
- Sphinx documentation
71
- -----------------------
72
-
73
- Sphinx is used to build the documentation based on rST files and comments in the code. First,
74
- install dependencies (feel free to reuse the virtual environment from above):
47
+ To install in a virtual environment in your current project:
75
48
76
49
.. code-block :: shell
77
50
51
+ mkdir project-name && cd project-name
78
52
python3 -m venv .env
79
53
source .env/bin/activate
80
- pip install Sphinx sphinx-rtd-theme
54
+ pip3 install adafruit-circuitpython-neotrellis
81
55
82
- Now, once you have the virtual environment activated:
56
+ Usage Example
57
+ =============
83
58
84
- .. code-block :: shell
59
+ see examples/neotrellis_simpletest.py for usage example
85
60
86
- cd docs
87
- sphinx-build -E -W -b html . _build/html
61
+ Contributing
62
+ ============
63
+
64
+ Contributions are welcome! Please read our `Code of Conduct
65
+ <https://github.com/adafruit/Adafruit_CircuitPython_NeoTrellis/blob/master/CODE_OF_CONDUCT.md> `_
66
+ before contributing to help this project stay welcoming.
67
+
68
+ Documentation
69
+ =============
88
70
89
- This will output the documentation to ``docs/_build/html ``. Open the index.html in your browser to
90
- view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
91
- locally verify it will pass.
71
+ For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1 >`_.
0 commit comments