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