Skip to content

Commit 474f246

Browse files
committed
update examples to use firmware_version property
1 parent cea2d9b commit 474f246

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/pn532_readwrite_mifare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
#uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100)
6363
#pn532 = PN532_UART(uart, debug=False)
6464

65-
ic, ver, rev, support = pn532.get_firmware_version()
65+
ic, ver, rev, support = pn532.firmware_version
6666
print('Found PN532 with firmware version: {0}.{1}'.format(ver, rev))
6767

6868
# Configure PN532 to communicate with MiFare cards

examples/pn532_readwrite_ntag2xx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100)
5959
#pn532 = PN532_UART(uart, debug=False)
6060

61-
ic, ver, rev, support = pn532.get_firmware_version()
61+
ic, ver, rev, support = pn532.firmware_version
6262
print('Found PN532 with firmware version: {0}.{1}'.format(ver, rev))
6363

6464
# Configure PN532 to communicate with MiFare cards

examples/pn532_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#uart = busio.UART(board.TX, board.RX, baudrate=115200, timeout=100)
3939
#pn532 = PN532_UART(uart, debug=False)
4040

41-
ic, ver, rev, support = pn532.get_firmware_version()
41+
ic, ver, rev, support = pn532.firmware_version
4242
print('Found PN532 with firmware version: {0}.{1}'.format(ver, rev))
4343

4444
# Configure PN532 to communicate with MiFare cards

0 commit comments

Comments
 (0)