update examples to use firmware_version property
This commit is contained in:
parent
cea2d9bfc6
commit
474f246508
3 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ pn532 = PN532_I2C(i2c, debug=False)
|
||||||
#uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100)
|
#uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100)
|
||||||
#pn532 = PN532_UART(uart, debug=False)
|
#pn532 = PN532_UART(uart, debug=False)
|
||||||
|
|
||||||
ic, ver, rev, support = pn532.get_firmware_version()
|
ic, ver, rev, support = pn532.firmware_version
|
||||||
print('Found PN532 with firmware version: {0}.{1}'.format(ver, rev))
|
print('Found PN532 with firmware version: {0}.{1}'.format(ver, rev))
|
||||||
|
|
||||||
# Configure PN532 to communicate with MiFare cards
|
# Configure PN532 to communicate with MiFare cards
|
||||||
|
|
|
@ -58,7 +58,7 @@ pn532 = PN532_SPI(spi, cs_pin, debug=False)
|
||||||
#uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100)
|
#uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100)
|
||||||
#pn532 = PN532_UART(uart, debug=False)
|
#pn532 = PN532_UART(uart, debug=False)
|
||||||
|
|
||||||
ic, ver, rev, support = pn532.get_firmware_version()
|
ic, ver, rev, support = pn532.firmware_version
|
||||||
print('Found PN532 with firmware version: {0}.{1}'.format(ver, rev))
|
print('Found PN532 with firmware version: {0}.{1}'.format(ver, rev))
|
||||||
|
|
||||||
# Configure PN532 to communicate with MiFare cards
|
# Configure PN532 to communicate with MiFare cards
|
||||||
|
|
|
@ -38,7 +38,7 @@ pn532 = PN532_I2C(i2c, debug=False, reset=reset_pin, req=req_pin)
|
||||||
#uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100)
|
#uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100)
|
||||||
#pn532 = PN532_UART(uart, debug=False)
|
#pn532 = PN532_UART(uart, debug=False)
|
||||||
|
|
||||||
ic, ver, rev, support = pn532.get_firmware_version()
|
ic, ver, rev, support = pn532.firmware_version
|
||||||
print('Found PN532 with firmware version: {0}.{1}'.format(ver, rev))
|
print('Found PN532 with firmware version: {0}.{1}'.format(ver, rev))
|
||||||
|
|
||||||
# Configure PN532 to communicate with MiFare cards
|
# Configure PN532 to communicate with MiFare cards
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue