When I use the attachInterrupt(digitalPinToInterrupt(2),function,FALLING)
it works only in some setups I use. What parameters could affect my project? I think something has to do with terminal resistors.
In the projects that the interrupt function doesn't work, I can still read the messages if I put the same function inside the loop.The interrupt pin in these situations falls only for the first message but then it stays zero, no matter if it receives messages or not.
What can cause this?
Is there a way to have the same result with some function inside this library?
Any help would be appreciated!
When I use the attachInterrupt(digitalPinToInterrupt(2),function,FALLING) it works only in some setups I use. What parameters could affect my project? I think something has to do with terminal resistors. In the projects that the interrupt function doesn't work, I can still read the messages if I put the same function inside the loop.The interrupt pin in these situations falls only for the first message but then it stays zero, no matter if it receives messages or not. What can cause this? Is there a way to have the same result with some function inside this library? Any help would be appreciated!