Skip to content

Commit 84583f8

Browse files
committed
forgot to move the import
1 parent 4464578 commit 84583f8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

adafruit_mcp230xx/mcp23008.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"""
3131

3232
from micropython import const
33-
from adafruit_bus_device import i2c_device
3433
from .mcp230xx import MCP230XX
3534
from .digital_inout import DigitalInOut
3635

@@ -97,4 +96,4 @@ def get_pin(self, pin):
9796
pointing at the specified pin of this MCP23008 device.
9897
"""
9998
assert 0 <= pin <= 7
100-
return DigitalInOut(pin, self)
99+
return DigitalInOut(pin, self)

adafruit_mcp230xx/mcp23017.py

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"""
3131

3232
from micropython import const
33-
from adafruit_bus_device import i2c_device
3433
from .mcp230xx import MCP230XX
3534
from .digital_inout import DigitalInOut
3635

adafruit_mcp230xx/mcp230xx.py

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
* Author(s): Tony DiCola
3030
"""
3131

32+
from adafruit_bus_device import i2c_device
33+
3234
__version__ = "0.0.0-auto.0"
3335
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx.git"
3436

@@ -37,6 +39,8 @@
3739
# However this is explicitly not thread safe or re-entrant by design!
3840
_BUFFER = bytearray(3)
3941

42+
43+
# pylint: disable=too-few-public-methods
4044
class MCP230XX:
4145
"""Base class for MCP230xx devices."""
4246

0 commit comments

Comments
 (0)