Merge pull request #63 from caternuson/iss44
Change UART timeout to seconds in examples
This commit is contained in:
commit
a7287d20be
4 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ pn532 = PN532_I2C(i2c, debug=False)
|
||||||
# pn532 = PN532_SPI(spi, cs_pin, debug=False)
|
# pn532 = PN532_SPI(spi, cs_pin, debug=False)
|
||||||
|
|
||||||
# UART connection
|
# 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)
|
# pn532 = PN532_UART(uart, debug=False)
|
||||||
|
|
||||||
ic, ver, rev, support = pn532.firmware_version
|
ic, ver, rev, support = pn532.firmware_version
|
||||||
|
|
|
@ -40,7 +40,7 @@ cs_pin = DigitalInOut(board.D5)
|
||||||
pn532 = PN532_SPI(spi, cs_pin, debug=False)
|
pn532 = PN532_SPI(spi, cs_pin, debug=False)
|
||||||
|
|
||||||
# UART connection
|
# 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)
|
# pn532 = PN532_UART(uart, debug=False)
|
||||||
|
|
||||||
ic, ver, rev, support = pn532.firmware_version
|
ic, ver, rev, support = pn532.firmware_version
|
||||||
|
|
|
@ -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)
|
# pn532 = PN532_SPI(spi, cs_pin, debug=False)
|
||||||
|
|
||||||
# UART connection
|
# 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)
|
# pn532 = PN532_UART(uart, debug=False)
|
||||||
|
|
||||||
ic, ver, rev, support = pn532.firmware_version
|
ic, ver, rev, support = pn532.firmware_version
|
||||||
|
|
|
@ -40,7 +40,7 @@ pn532 = PN532_I2C(i2c, debug=False, reset=reset_pin, req=req_pin)
|
||||||
# pn532 = PN532_SPI(spi, cs_pin, debug=False)
|
# pn532 = PN532_SPI(spi, cs_pin, debug=False)
|
||||||
|
|
||||||
# UART connection
|
# 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)
|
# pn532 = PN532_UART(uart, debug=False)
|
||||||
|
|
||||||
ic, ver, rev, support = pn532.firmware_version
|
ic, ver, rev, support = pn532.firmware_version
|
||||||
|
|
Loading…
Reference in a new issue