From fe02ff3571fadad47c618adc7e6280998264820b Mon Sep 17 00:00:00 2001 From: caternuson Date: Thu, 23 Feb 2023 12:35:27 -0800 Subject: [PATCH] change timeout to seconds --- examples/pn532_readwrite_mifare.py | 2 +- examples/pn532_readwrite_ntag2xx.py | 2 +- examples/pn532_simplelisten.py | 2 +- examples/pn532_simpletest.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/pn532_readwrite_mifare.py b/examples/pn532_readwrite_mifare.py index 3b756cb..82333e7 100644 --- a/examples/pn532_readwrite_mifare.py +++ b/examples/pn532_readwrite_mifare.py @@ -44,7 +44,7 @@ pn532 = PN532_I2C(i2c, debug=False) # pn532 = PN532_SPI(spi, cs_pin, debug=False) # UART connection -# uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100) +# uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=0.1) # pn532 = PN532_UART(uart, debug=False) ic, ver, rev, support = pn532.firmware_version diff --git a/examples/pn532_readwrite_ntag2xx.py b/examples/pn532_readwrite_ntag2xx.py index 765e062..9755d87 100644 --- a/examples/pn532_readwrite_ntag2xx.py +++ b/examples/pn532_readwrite_ntag2xx.py @@ -40,7 +40,7 @@ cs_pin = DigitalInOut(board.D5) pn532 = PN532_SPI(spi, cs_pin, debug=False) # UART connection -# uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100) +# uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=0.1) # pn532 = PN532_UART(uart, debug=False) ic, ver, rev, support = pn532.firmware_version diff --git a/examples/pn532_simplelisten.py b/examples/pn532_simplelisten.py index c9f7851..35eea95 100644 --- a/examples/pn532_simplelisten.py +++ b/examples/pn532_simplelisten.py @@ -46,7 +46,7 @@ pn532 = PN532_I2C(i2c, debug=False, reset=reset_pin, req=req_pin, irq=irq_pin) # pn532 = PN532_SPI(spi, cs_pin, debug=False) # UART connection -# uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100) +# uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=0.1) # pn532 = PN532_UART(uart, debug=False) ic, ver, rev, support = pn532.firmware_version diff --git a/examples/pn532_simpletest.py b/examples/pn532_simpletest.py index 25de1e1..4308525 100644 --- a/examples/pn532_simpletest.py +++ b/examples/pn532_simpletest.py @@ -40,7 +40,7 @@ pn532 = PN532_I2C(i2c, debug=False, reset=reset_pin, req=req_pin) # pn532 = PN532_SPI(spi, cs_pin, debug=False) # UART connection -# uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100) +# uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=0.1) # pn532 = PN532_UART(uart, debug=False) ic, ver, rev, support = pn532.firmware_version