File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 48
48
49
49
__version__ = "0.0.0-auto.0"
50
50
__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
52
52
TC74_DEFAULT_ADDRESS = 0x48
53
53
54
54
TC74_REGISTER_TEMP = 0 # Temperature register (read-only)
55
55
TC74_REGISTER_CONFIG = 1 # Configuration register
56
56
TC74_SHUTDOWN_BIT = 7 # Shutdown bit in Configuration register
57
57
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
61
59
62
60
63
61
class TC74 :
64
62
"""
65
63
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.
67
65
:param address: The I2C device address for the sensor. Default is
68
66
``0x48``.
69
67
"""
Original file line number Diff line number Diff line change 1
1
import time
2
2
import board
3
- import busio
4
3
import adafruit_tc74
5
4
6
- i2c = busio .I2C (board . SCL , board . SDA )
5
+ i2c = board .I2C ()
7
6
8
7
tc = adafruit_tc74 .TC74 (i2c )
9
8
You can’t perform that action at this time.
0 commit comments