Class: BBB::Pins::DigitalInputPin
- Inherits:
-
DigitalPin
- Object
- DigitalPin
- BBB::Pins::DigitalInputPin
- Defined in:
- lib/BBB/pins/digital_pin.rb
Overview
Instance Attribute Summary
Attributes inherited from DigitalPin
Attributes included from Pinnable
Instance Method Summary collapse
-
#initialize(position, opts = {}) ⇒ DigitalInputPin
constructor
A new instance of DigitalInputPin.
Methods inherited from DigitalPin
#direction, #off!, #off?, #on!, #on?, #write
Methods included from Pinnable
Constructor Details
#initialize(position, opts = {}) ⇒ DigitalInputPin
Returns a new instance of DigitalInputPin.
89 90 91 92 |
# File 'lib/BBB/pins/digital_pin.rb', line 89 def initialize(position, opts={}) opts.merge!(:direction=>:input) super(position, opts) end |