Skip to content

Commit 5d74aca

Browse files
authored
Merge pull request #2 from kattni/small-fix
Remove unnecessary pylint disable, use board.I2C() in simpletest.
2 parents 245cf49 + 3318fbe commit 5d74aca

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Diff for: adafruit_tc74.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,20 @@
4848

4949
__version__ = "0.0.0-auto.0"
5050
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_TC74.git"
51-
# pylint: disable=bad-whitespace, too-few-public-methods
51+
# pylint: disable=too-few-public-methods
5252
TC74_DEFAULT_ADDRESS = 0x48
5353

5454
TC74_REGISTER_TEMP = 0 # Temperature register (read-only)
5555
TC74_REGISTER_CONFIG = 1 # Configuration register
5656
TC74_SHUTDOWN_BIT = 7 # Shutdown bit in Configuration register
5757
TC74_DATA_READY_BIT = 6 # Data Ready bit in Configuration register
58-
59-
60-
# pylint: enable=bad-whitespace, too-few-public-methods
58+
# pylint: enable=too-few-public-methods
6159

6260

6361
class TC74:
6462
"""
6563
Driver for the Microchip TC74 Digital Temperature Sensor.
66-
:param ~busio.I2C i2c_bus: The I2C bus the TC74 is connected to.
64+
:param i2c_bus: The I2C bus the TC74 is connected to.
6765
:param address: The I2C device address for the sensor. Default is
6866
``0x48``.
6967
"""

Diff for: examples/tc74_simpletest.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import time
22
import board
3-
import busio
43
import adafruit_tc74
54

6-
i2c = busio.I2C(board.SCL, board.SDA)
5+
i2c = board.I2C()
76

87
tc = adafruit_tc74.TC74(i2c)
98

0 commit comments

Comments
 (0)