diff --git a/adafruit_pn532/adafruit_pn532.py b/adafruit_pn532/adafruit_pn532.py index 35c0f86..513dcec 100644 --- a/adafruit_pn532/adafruit_pn532.py +++ b/adafruit_pn532/adafruit_pn532.py @@ -28,7 +28,6 @@ Implementation Notes import time from digitalio import Direction - from micropython import const try: @@ -164,7 +163,7 @@ class PN532: *, debug: bool = False, irq: Optional[DigitalInOut] = None, - reset: Optional[DigitalInOut] = None + reset: Optional[DigitalInOut] = None, ) -> None: """Create an instance of the PN532 class""" self.low_power = True diff --git a/adafruit_pn532/i2c.py b/adafruit_pn532/i2c.py index ade7c18..657688c 100644 --- a/adafruit_pn532/i2c.py +++ b/adafruit_pn532/i2c.py @@ -52,7 +52,8 @@ class PN532_I2C(PN532): :param ~busio.I2C i2c: The I2C bus the PN532 is connected to. :param int address: The I2C device address. Defaults to :const:`0x24` - :param digitalio.DigitalInOut reset: board pin the PN532 reset is connected to + :param digitalio.DigitalInOut irq: board pin the PN532 IRQ is connected to + :param digitalio.DigitalInOut reset: board pin the PN532 RSTOUT_N is connected to :param digitalio.DigitalInOut req: board pin the PN532 P32 is connected to :param bool debug: if True print additional debug statements. Defaults to False diff --git a/adafruit_pn532/spi.py b/adafruit_pn532/spi.py index 18857b2..50ccfd1 100644 --- a/adafruit_pn532/spi.py +++ b/adafruit_pn532/spi.py @@ -67,7 +67,7 @@ class PN532_SPI(PN532): :param ~busio.SPI spi: The spi bus the PN532 is connected to. :param digitalio.DigitalInOut cs: board pin the PN532 chip select line is connected to :param digitalio.DigitalInOut irq: board pin the PN532 P32 is connected to - :param digitalio.DigitalInOut reset: board pin the PN532 reset is connected to + :param digitalio.DigitalInOut reset: board pin the PN532 RSTOUT_N is connected to :param bool debug: if True print additional debug statements. Defaults to False **Quickstart: Importing and using the device** diff --git a/adafruit_pn532/uart.py b/adafruit_pn532/uart.py index b99bf1c..8f8949b 100644 --- a/adafruit_pn532/uart.py +++ b/adafruit_pn532/uart.py @@ -39,7 +39,7 @@ class PN532_UART(PN532): Optional reset pin and debugging output. :param ~busio.UART uart: The uart object the PN532 is connected to. - :param digitalio.DigitalInOut reset: board pin the PN532 reset is connected to + :param digitalio.DigitalInOut reset: board pin the PN532 RSTOUT_N is connected to :param bool debug: if True print additional debug statements. Defaults to False **Quickstart: Importing and using the device**