Module: Denko::Behaviors::SinglePin

Includes:
Component
Included in:
InputPin, OutputPin, I2C::Bus, LED::WS2812, Motor::Servo, OneWire::Bus, Sensor::DHT, UART::Hardware
Defined in:
lib/denko/behaviors/single_pin.rb

Instance Attribute Summary collapse

Attributes included from Component

#board

Method Summary

Methods included from Component

#initialize, #micro_delay

Methods included from State

#initialize, #state

Instance Attribute Details

#modeObject

Returns the value of attribute mode.



5
6
7
# File 'lib/denko/behaviors/single_pin.rb', line 5

def mode
  @mode
end

#pinObject (readonly)

Returns the value of attribute pin.



5
6
7
# File 'lib/denko/behaviors/single_pin.rb', line 5

def pin
  @pin
end