PN532 writing data

You know when something just fights you for hours....

So, dug out a PN532.

Connected it via I2C (with/without pullups)... nope. Didn't work
Tried Serial. Nope.

Finally off the start line using SPI (yes, I did change the onboard DIP switches).

Managed to read some Mifare cards using the Adafruit_PN532 library. Also cleared the cards.
OK. Fine

Now, from what I understand, these cards are 4 sectors, containing 4 blocks of 16 bytes.

The first 5 bytes of block 0 holds 4x UID and a checksum.
The first 3 blocks of each sector can hold information.

But, I can't find in the examples how to write to these blocks. Can anyone point me in the right direction. Bearing in mind I appear to be thick these days.

Thanks

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.