File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,30 @@ 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
+ Installing from PyPI
32
+ =====================
33
+ On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
34
+ PyPI <https://pypi.org/project/adafruit-circuitpython-thermistor/> `_. To install for current user:
35
+
36
+ .. code-block :: shell
37
+
38
+ pip3 install adafruit-circuitpython-thermistor
39
+
40
+ To install system-wide (this may be required in some cases):
41
+
42
+ .. code-block :: shell
43
+
44
+ sudo pip3 install adafruit-circuitpython-thermistor
45
+
46
+ To install in a virtual environment in your current project:
47
+
48
+ .. code-block :: shell
49
+
50
+ mkdir project-name && cd project-name
51
+ python3 -m venv .env
52
+ source .env/bin/activate
53
+ pip3 install adafruit-circuitpython-thermistor
54
+
31
55
Usage Example
32
56
=============
33
57
Original file line number Diff line number Diff line change 20
20
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
# THE SOFTWARE.
22
22
"""
23
- `adafruit_thermistor` - Read temperature with a thermistor
23
+ `adafruit_thermistor`
24
24
===========================================================
25
25
26
26
A thermistor is a resistor that varies with temperature. This driver takes the
57
57
import math
58
58
import analogio
59
59
60
+ __version__ = "0.0.0-auto.0"
61
+ __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Thermistor.git"
62
+
63
+
60
64
class Thermistor :
61
65
"""Thermistor driver"""
62
66
You can’t perform that action at this time.
0 commit comments