1
1
Introduction
2
2
============
3
3
4
+
4
5
.. image :: https://readthedocs.org/projects/adafruit-circuitpython-nunchuk/badge/?version=latest
5
6
:target: https://docs.circuitpython.org/projects/nunchuk/en/latest/
6
7
:alt: Documentation Status
7
8
9
+
8
10
.. image :: https://img.shields.io/discord/327254708534116352.svg
9
11
:target: https://adafru.it/discord
10
12
:alt: Discord
11
13
14
+
12
15
.. image :: https://github.com/adafruit/Adafruit_CircuitPython_Nunchuk/workflows/Build%20CI/badge.svg
13
- :target: https://github.com/adafruit/Adafruit_CircuitPython_Nunchuk/actions/
16
+ :target: https://github.com/adafruit/Adafruit_CircuitPython_Nunchuk/actions
14
17
:alt: Build Status
15
18
19
+
20
+ .. image :: https://img.shields.io/badge/code%20style-black-000000.svg
21
+ :target: https://github.com/psf/black
22
+ :alt: Code Style: Black
23
+
16
24
CircuitPython library for Nintendo Nunchuk controller
17
25
18
26
@@ -25,7 +33,64 @@ This driver depends on:
25
33
26
34
Please ensure all dependencies are available on the CircuitPython filesystem.
27
35
This is easily achieved by downloading
28
- `the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle >`_.
36
+ `the Adafruit library and driver bundle <https://circuitpython.org/libraries >`_
37
+ or individual libraries can be installed using
38
+ `circup <https://github.com/adafruit/circup >`_.
39
+
40
+ Works with the Wii controller (Nunchuck / Wiichuck).
41
+
42
+ `Purchase one from the Adafruit shop <http://www.adafruit.com/products/342 >`_
43
+
44
+
45
+ Installing from PyPI
46
+ =====================
47
+ On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
48
+ PyPI <https://pypi.org/project/adafruit-circuitpython-nunchuk/> `_.
49
+ To install for current user:
50
+
51
+ .. code-block :: shell
52
+
53
+ pip3 install adafruit-circuitpython-nunchuk
54
+
55
+ To install system-wide (this may be required in some cases):
56
+
57
+ .. code-block :: shell
58
+
59
+ sudo pip3 install adafruit-circuitpython-nunchuk
60
+
61
+ To install in a virtual environment in your current project:
62
+
63
+ .. code-block :: shell
64
+
65
+ mkdir project-name && cd project-name
66
+ python3 -m venv .env
67
+ source .env/bin/activate
68
+ pip3 install adafruit-circuitpython-nunchuk
69
+
70
+
71
+
72
+ Installing to a Connected CircuitPython Device with Circup
73
+ ==========================================================
74
+
75
+ Make sure that you have ``circup `` installed in your Python environment.
76
+ Install it with the following command if necessary:
77
+
78
+ .. code-block :: shell
79
+
80
+ pip3 install circup
81
+
82
+ With ``circup `` installed and your CircuitPython device connected use the
83
+ following command to install:
84
+
85
+ .. code-block :: shell
86
+
87
+ circup install nunchuk
88
+
89
+ Or the following command to update an existing version:
90
+
91
+ .. code-block :: shell
92
+
93
+ circup update
29
94
30
95
Usage Example
31
96
=============
@@ -34,17 +99,14 @@ See nunchuk_simpletest.py in examples folder.
34
99
35
100
Documentation
36
101
=============
37
-
38
102
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/nunchuk/en/latest/ >`_.
39
103
104
+ For information on building library documentation, please check out
105
+ `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1 >`_.
106
+
40
107
Contributing
41
108
============
42
109
43
110
Contributions are welcome! Please read our `Code of Conduct
44
- <https://github.com/adafruit/Adafruit_CircuitPython_Nunchuk/blob/master /CODE_OF_CONDUCT.md> `_
111
+ <https://github.com/adafruit/Adafruit_CircuitPython_Nunchuk/blob/HEAD /CODE_OF_CONDUCT.md> `_
45
112
before contributing to help this project stay welcoming.
46
-
47
- Documentation
48
- =============
49
-
50
- 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