Skip to content

Commit a86eaeb

Browse files
committed
fixing pylint errors
1 parent 7d007b9 commit a86eaeb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

examples/display_temperature.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1+
import time
12
import adafruit_thermistor
23
import board
3-
import time
44

55
# these values work with the Adafruit CircuitPlayground Express.
66
# they may work with other thermistors as well, as they're fairly standard,
77
# though the pin will likely need to change (ie board.A1)
88
pin = board.TEMPERATURE
9-
series_resistor = 10000
10-
nominal_resistance = 10000
11-
nominal_temperature = 25
9+
resistor = 10000
10+
resistance = 10000
11+
nominal_temp = 25
1212
b_coefficient = 3950
13-
high_side_bool = True
1413

15-
thermistor = adafruit_thermistor.Thermistor(pin, series_resistor, nominal_resistance, nominal_temperature, b_coefficient, high_side=high_side_bool)
14+
thermistor = adafruit_thermistor.Thermistor(pin, resistor, resistance, nominal_temp, b_coefficient)
1615

1716
# print the temperature in C and F to the serial console every second
1817
while True:

0 commit comments

Comments
 (0)