What you're doing sounds good. You could try software I2C just in case?
var i2c = new I2C();
i2c.setup({scl:D28, sda:D29});
var nfc = require("PN532").connect(i2c);
That'll be able to use the internal pullup resistors which may work if the PN532 doesn't have any.
Another issue could be the voltage. IIRC the PN532 needs quite a bit of power to get its coils working - it's possible that the 3v CR2032 doesn't supply enough power.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
What you're doing sounds good. You could try software I2C just in case?
That'll be able to use the internal pullup resistors which may work if the PN532 doesn't have any.
Another issue could be the voltage. IIRC the PN532 needs quite a bit of power to get its coils working - it's possible that the 3v CR2032 doesn't supply enough power.
In that case, you'd just have to: