class Pigpio::UserGPIO

Public Instance Methods

callback(edge,&blk) click to toggle source
# File lib/pigpio/user_gpio.rb, line 13
def callback(edge,&blk)
  return nil unless blk
  IF.callback(@pi,@gpio,edge,&blk)
end
glitch_filter(steady) click to toggle source
# File lib/pigpio/user_gpio.rb, line 7
def glitch_filter(steady)
  ret=IF.set_glitch_filter(@pi,@gpio,steady)
end
noise_filter(steady,active) click to toggle source
# File lib/pigpio/user_gpio.rb, line 10
def noise_filter(steady,active)
  ret=IF.set_noise_filter(@pi,@gpio,steady,active)
end
pwm() click to toggle source
# File lib/pigpio/user_gpio.rb, line 23
def pwm
  PWM.new(@pi,@gpio)
end
trigger(pulseLen,level) click to toggle source
# File lib/pigpio/user_gpio.rb, line 20
def trigger(pulseLen,level)
  ret=IF.gpio_trigger(@pi,@gpio,pulseLen,level)
end
wait_for_edge(edge,timeout) click to toggle source
# File lib/pigpio/user_gpio.rb, line 17
def wait_for_edge(edge,timeout)
  ret=IF.wait_for_edge(@pi,@gpio,edge,timeout)
end
watchdog(timeout) click to toggle source
# File lib/pigpio/user_gpio.rb, line 4
def watchdog(timeout)
  ret=IF.set_watchdog(@pi,@gpio,timeout)
end