Module: Denko::Behaviors::InputPin
Constant Summary
collapse
- INPUT_MODES =
[:input, :input_pulldown, :input_pullup]
Constants included
from Lifecycle
Lifecycle::CALLBACK_METHODS
Instance Attribute Summary
Attributes included from SinglePin
#mode, #pin
Attributes included from Component
#board, #params
Attributes included from State
#state
Instance Method Summary
collapse
Methods included from Lifecycle
included
Methods included from SinglePin
#convert_pins, #initialize_pins
Methods included from Component
#initialize, #micro_delay
Methods included from State
#update_state
Instance Method Details
#_stop_listener ⇒ Object
17
18
19
|
# File 'lib/denko/behaviors/input_pin.rb', line 17
def _stop_listener
board.stop_listener(pin)
end
|
#debounce_time=(value) ⇒ Object
21
22
23
|
# File 'lib/denko/behaviors/input_pin.rb', line 21
def debounce_time=(value)
board.set_pin_debounce(pin, value)
end
|