Class: Cgpio::Gpio
- Inherits:
-
Object
- Object
- Cgpio::Gpio
- Defined in:
- lib/cgpio/gpio.rb
Class Method Summary collapse
Class Method Details
.new(nr, options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/cgpio/gpio.rb', line 5 def self.new(nr, ={}) if Cgpio.configuration.virtual Cgpio::VirtualGpio.new(nr, ) else Cgpio::RealGpio.new(nr, ) end end |