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
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#pin ⇒ Object
readonly
Returns the value of attribute pin.
Attributes included from Component
Method Summary
Methods included from Component
Methods included from State
Instance Attribute Details
#mode ⇒ Object
Returns the value of attribute mode.
5 6 7 |
# File 'lib/denko/behaviors/single_pin.rb', line 5 def mode @mode end |
#pin ⇒ Object (readonly)
Returns the value of attribute pin.
5 6 7 |
# File 'lib/denko/behaviors/single_pin.rb', line 5 def pin @pin end |