Skip to content

Commit

Permalink
Update Example
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Apr 2, 2023
1 parent d15eb0c commit 6ef3b47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Example/write_and_read.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from src.py_acr122u import nfc
from py_acr122u import nfc

reader = nfc.Reader()
reader.connect()

reader.load_authentication_data(0x01, [0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF])
reader.authentication(0x00, 0x61, 0x01)
Expand Down Expand Up @@ -29,5 +30,6 @@ def read(r, position, number):
def read_16(r, position, number):
return r.read_binary_blocks(position, number)


write(reader, 0x01, 0x20, [0x00 for i in range(16)])
print(read(reader, 0x01, 0x20))

0 comments on commit 6ef3b47

Please sign in to comment.