Constructor
new _callback(notify, userGpio, edge, cb)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
notify |
Set | Set of callbacks current registered. |
userGpio |
number | Broadcom GPIO number. |
edge |
number | Either EITHER_EDGE, RISING_EDGE or FALLING_EDGE. |
cb |
callback | A user function taking three arguments (GPIO, level, tick). |
Methods
cancel()
- Source:
Cancels a callback by removing it from the notification thread.
tally()
- Source:
Provides a count of how many times the default tally
callback has triggered.
The count will be zero if the user has supplied their own
callback function.