Whenever I try and query the nfc object it just hangs.
I'm using Espruino Wifi and have my setup code like this:
I2C2.setup({scl:B10, sda:B3}); var nfc = require("PN532").connect(I2C2);
That doesn't make anything hang.
But if I then try this
console.log(nfc.getVersion());
It just hangs. Doesn't matter what method I call on the nfc class, it just hangs straight away.
I've tried i2c1 as well and I seem the same behaviour.
Any ideas?
@BrendanDawes started
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.
Whenever I try and query the nfc object it just hangs.
I'm using Espruino Wifi and have my setup code like this:
That doesn't make anything hang.
But if I then try this
It just hangs. Doesn't matter what method I call on the nfc class, it just hangs straight away.
I've tried i2c1 as well and I seem the same behaviour.
Any ideas?