Class: IoT::BinaryEffector

Inherits:
DigitalEffector show all
Defined in:
lib/iot/binary_effector.rb

Overview

BinaryEffector - effector with binary logic

Direct Known Subclasses

BinaryActuator, LED

Instance Method Summary collapse

Methods inherited from DigitalEffector

#off, off, #off?, on, #on, #on?

Methods inherited from Effector

#model_name, #name

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