Closed
Description
the example readwrite_ntag2xx.py fails with:
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 4.0.0-beta.0-15-g6be4b07e1 on 2019-01-24; Adafruit Feather nRF52840 Express with nRF52840
>>>
>>> import readwrite_ntag2xx
Found PN532 with firmware version: 1.6
Waiting for RFID/NFC card to write to!
.
.
.
Found card with UID: ['0x53', '0x15', '0x8a', '0xb2', '0x0', '0x1a', '0x80']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "readwrite_ntag2xx.py", line 82, in <module>
NotImplementedError: array/bytes required on right side
>>>
replacing line 82 with
jerryneedell@Ubuntu-Macmini:~/projects/feather_nrf52840$ diff ntag203.py readwrite_ntag2xx.py
82c82
< data[0:4] = b'\xFE\xED\xBE\xEF'
---
> data[0:4] = [0xFE, 0xED, 0xBE, 0xEF]
works as expected
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 4.0.0-beta.0-15-g6be4b07e1 on 2019-01-24; Adafruit Feather nRF52840 Express with nRF52840
>>>
>>> import ntag203
Found PN532 with firmware version: 1.6
Waiting for RFID/NFC card to write to!
.
.
.
Found card with UID: ['0x53', '0x15', '0x8a', '0xb2', '0x0', '0x1a', '0x80']
Wrote to block 6, now trying to read that data: ['0xfe', '0xed', '0xbe', '0xef']
>>>
Metadata
Metadata
Assignees
Labels
No labels