How to use the gpioSetAlertFunc function from bindings

Find comprehensive JavaScript bindings.gpioSetAlertFunc code examples handpicked from public code repositorys.

143
144
145
146
147
148
149
150
151
152
enableAlert() {
  const handler = (gpio, level, tick) => {
    this.emit('alert', level, tick);
  };

  pigpio.gpioSetAlertFunc(this.gpio, handler);
  return this;
}

disableAlert() {
fork icon87
star icon0
watch icon2

+ 19 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)