Class: GPIO::Base
- Inherits:
-
Object
- Object
- GPIO::Base
- Defined in:
- lib/c_gpio.rb
Instance Method Summary collapse
Instance Method Details
#on_high(&block) ⇒ Object
8 9 10 11 12 |
# File 'lib/c_gpio.rb', line 8 def on_high(&block) Thread.new do wait_for_high(block) end end |
#on_low(&block) ⇒ Object
14 15 16 17 18 |
# File 'lib/c_gpio.rb', line 14 def on_low(&block) Thread.new do wait_for_low(block) end end |