amperka/pc-interrupt@0.1.0

License: AGPL-3.0

The library provides attaching the interrupt handlers to pins, which supports either interrupts or pin change interrupts. Works only on AVR platform. If you use this library do not use interrupts from `xod/gpio`, because it will have conflicts and the code won't compile.
NodeDescription
change-interrupt
Attaches the interrupt to the specified port in the CHANGE mode. It triggers whenever the pin changes its value. The change increments a counter and stores the time in microseconds of the latest interrupt. The node emits these values and a pulse as soon as possible, but not right at the moment when the interrupt occurred.
exampleNo description
fall-interrupt
Attaches the interrupt to the specified port in the RISING mode. It triggers whenever the pin goes from low to high. The change increments a counter and stores the time in microseconds of the latest interrupt. The node emits these values and a pulse as soon as possible, but not right at the moment when the interrupt occurred.
rise-interrupt
Attaches the interrupt to the specified port in the FALLING mode. It triggers whenever the pin goes from high to low. The change increments a counter and stores the time in microseconds of the latest interrupt. The node emits these values and a pulse as soon as possible, but not right at the moment when the interrupt occurred.
To use the nodes in your project you should have the amperka/pc-interrupt library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.