@@ -13,9 +13,9 @@ Introduction
13
13
:target: https://github.com/adafruit/Adafruit_CircuitPython_MCP9600/actions/
14
14
:alt: Build Status
15
15
16
- This is a CircuitPython driver for the MCP9600 thermocouple I2C amplifier.
16
+ This is a CircuitPython driver for the MCP9600 thermocouple I2C amplifier.
17
17
In addition to the MCP9600 breakout, you will also need a thermocouple, which
18
- can be found in the Adafruit store.
18
+ can be found in the Adafruit store.
19
19
The MCP9600 supports several thermocouple types for different temperature
20
20
ranges. The "K" type is the default, with a range of -200C to +1372C.
21
21
@@ -45,7 +45,7 @@ To install system-wide (this may be required in some cases):
45
45
.. code-block :: shell
46
46
47
47
sudo pip3 install adafruit-circuitpython-mcp9600
48
-
48
+
49
49
To install in a virtual environment in your current project:
50
50
51
51
.. code-block :: shell
@@ -54,12 +54,12 @@ To install in a virtual environment in your current project:
54
54
python3 -m venv .env
55
55
source .env/bin/activate
56
56
pip3 install adafruit-circuitpython-mcp9600
57
-
57
+
58
58
Usage Example
59
59
=============
60
60
61
61
This is a simple example showing the hot junction temperature (the
62
- temperature at the tip of the thermocouple). You may need to adjust the
62
+ temperature at the tip of the thermocouple). You may need to adjust the
63
63
I2C frequency if you receive input/output errors.
64
64
65
65
.. code-block :: shell
@@ -78,7 +78,7 @@ I2C frequency if you receive input/output errors.
78
78
print(" MCP9600 sensor not detected" )
79
79
80
80
This example displays the ambient/room and hot junction temperatures at
81
- 1 second intervals. Turn on the Mu editor's plotter option to view the
81
+ 1 second intervals. Turn on the Mu editor's plotter option to view the
82
82
temperatures in a real-time graph.
83
83
84
84
.. code-block :: shell
@@ -96,8 +96,8 @@ temperatures in a real-time graph.
96
96
print(" version:" , device.version)
97
97
while True:
98
98
print((
99
- device.ambient_temperature,
100
- device.temperature
99
+ device.ambient_temperature,
100
+ device.temperature
101
101
))
102
102
time.sleep(1)
103
103
except ValueError:
0 commit comments