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