IRQ is interupt Request… so when it is floating the processor may be interupting
I notice you don’t have a declares for the output pins or input pins?
You’ll need those
Adafruit_PN532::Adafruit_PN532(uint8_t irq, uint8_t reset, TwoWire *theWire)
: _irq(irq), _reset(reset) {
pinMode(_irq, INPUT);
pinMode(_reset, OUTPUT);
i2c_dev = new Adafruit_I2CDevice(PN532_I2C_ADDRESS, theWire);
}
no need to, its declared in the constructor
yo, btw i changed the delay(10) to delay(1) it now works fine
FUCK i love electronics
Hilarious,
WE all do…
Mark it as the solution so others can find it…
GL PJ
Delay Lives Matter
now its a matter of integration with the rest of the code. i dont know if ill have difficulties with i2c
the delay was somehow messing with the IIC signal timing
how to mark it as a solution ?
now that im trying to integrate the code in my current project, the fun starts
what could cause this kind of warning ?
[ 3664][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
it gives me this warning just after uploading the main.cpp. After that, if i restart the mcu with usb for example i have no warning
Hi there, Sounds like a high baud rate issue or shaky cable ,a clock or pull up resistor issue?
If reset fixes it, add some delay after the wire begin to give it time to run.
HTH
GL PJ
I really think if you get one of these…
you can do away with half your problems and get a few bonus as well
dont forget the case too… very handy
but the battery polarity is reverse from standard so you need to make up your own cable or switch the pins… i get a
https://www.amazon.com/dp/B08T9FB56F
https://www.amazon.com/dp/B01M5AHF0Z
ahahahahah you are an affiliated seller or what. i dont need that thank you. i dont see the value in investing in something i will not re-use after prototyping stage. Sorry.
thats how you pay back for all the free help you got
Hi there,
Sounds like it did NOT respond to the read request is what I’m seeing?
HTH
GL PJ