diff --git a/adafruit_pn532/i2c.py b/adafruit_pn532/i2c.py index 45d2a7e..2d8054c 100644 --- a/adafruit_pn532/i2c.py +++ b/adafruit_pn532/i2c.py @@ -40,9 +40,8 @@ __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PN532.git" import time import adafruit_bus_device.i2c_device as i2c_device from digitalio import Direction -from adafruit_pn532.adafruit_pn532 import PN532, BusyError, _reset - from micropython import const +from adafruit_pn532.adafruit_pn532 import PN532, BusyError, _reset # pylint: disable=bad-whitespace _I2C_ADDRESS = const(0x24) diff --git a/adafruit_pn532/spi.py b/adafruit_pn532/spi.py index 6baf090..bd656d6 100644 --- a/adafruit_pn532/spi.py +++ b/adafruit_pn532/spi.py @@ -39,9 +39,8 @@ __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PN532.git" import time import adafruit_bus_device.spi_device as spi_device -from adafruit_pn532.adafruit_pn532 import PN532 - from micropython import const +from adafruit_pn532.adafruit_pn532 import PN532 # pylint: disable=bad-whitespace _SPI_STATREAD = const(0x02)