We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3a5ec commit 9f7aa00Copy full SHA for 9f7aa00
adafruit_thermistor.py
@@ -39,6 +39,7 @@
39
40
import math
41
import analogio
42
+import microcontroller
43
44
__version__ = "0.0.0-auto.0"
45
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Thermistor.git"
@@ -85,13 +86,13 @@ class Thermistor:
85
86
87
def __init__(
88
self,
- pin,
89
- series_resistor,
90
- nominal_resistance,
91
- nominal_temperature,
92
- b_coefficient,
+ pin: microcontroller.pin,
+ series_resistor: int,
+ nominal_resistance: int,
+ nominal_temperature: int,
93
+ b_coefficient: int,
94
*,
- high_side=True
95
+ high_side: bool = True
96
):
97
# pylint: disable=too-many-arguments
98
self.pin = analogio.AnalogIn(pin)
0 commit comments