class Pigpio::Bank

Constants

Set

Public Class Methods

new(pi,num) click to toggle source
# File lib/pigpio/bank.rb, line 8
def initialize(pi,num)
  @pi=pi
  @num=num
end

Public Instance Methods

clear(bits) click to toggle source
# File lib/pigpio/bank.rb, line 15
def clear(bits)
  IF.send(Set[:clear][@num],@pi,bits)
end
read() click to toggle source
# File lib/pigpio/bank.rb, line 12
def read
  IF.send(Set[:read][@num],@pi)
end
set(bits) click to toggle source
# File lib/pigpio/bank.rb, line 18
def set(bits)
  IF.send(Set[:set][@num],@pi,bits)
end