Class: Pigpio::Bank
- Inherits:
-
Object
- Object
- Pigpio::Bank
- Defined in:
- lib/pigpio/bank.rb
Constant Summary collapse
- Set =
{ read: [:read_bank_1, :read_bank_2], clear: [:clear_bank_1, :clear_bank_2], set: [:set_bank_1, :set_bank_2] }
Instance Method Summary collapse
- #clear(bits) ⇒ Object
-
#initialize(pi, num) ⇒ Bank
constructor
A new instance of Bank.
- #read ⇒ Object
- #set(bits) ⇒ Object
Constructor Details
#initialize(pi, num) ⇒ Bank
Returns a new instance of Bank.
8 9 10 11 |
# File 'lib/pigpio/bank.rb', line 8 def initialize(pi, num) @pi = pi @num = num end |