chickadee » raspberry-pi-gpio » set-edge

set-edge pin edgeprocedure

Sets up an interrupt handler for the pin and given edge using wiringPiISR. Use this to hook up events for use with `recieve-gpio-event`.

Type should be one of the following symbols: `falling`, `rising`, `both`, `setup`. If `setup` is used then no initialisation of the pin will happen – it’s assumed that you have already setup the pin elsewhere (e.g. with the gpio program).