Class: IoT::BinaryEffector
- Inherits:
-
DigitalEffector
- Object
- Effector
- DigitalEffector
- IoT::BinaryEffector
- Defined in:
- lib/iot/binary_effector.rb
Overview
BinaryEffector - effector with binary logic
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(pin = 25, state = :low) ⇒ BinaryEffector
constructor
A new instance of BinaryEffector.
Methods inherited from DigitalEffector
#off, off, #off?, on, #on, #on?
Methods inherited from Effector
Constructor Details
#initialize(pin = 25, state = :low) ⇒ BinaryEffector
Returns a new instance of BinaryEffector.
6 7 8 9 |
# File 'lib/iot/binary_effector.rb', line 6 def initialize(pin=25, state=:low) super({:pin => pin}, :low) @pin = pin end |