Module: Denko::Behaviors::BoardProxy

Includes:
Subcomponents
Included in:
AnalogIO::ADS111X, DigitalIO::PCF8574, SPI::BaseRegister
Defined in:
lib/denko/behaviors/board_proxy.rb

Instance Method Summary collapse

Methods included from Subcomponents

#add_component, #add_hw_i2c, #add_hw_spi, #add_single_pin, #components, #hw_i2c_comps, #hw_spi_comps, #remove_component, #remove_hw_i2c, #remove_hw_spi, #remove_single_pin, #single_pin_components

Instance Method Details

#analog_read_highObject Also known as: adc_high



14
15
16
# File 'lib/denko/behaviors/board_proxy.rb', line 14

def analog_read_high
  nil
end

#analog_write_highObject Also known as: pwm_high, dac_high



18
19
20
# File 'lib/denko/behaviors/board_proxy.rb', line 18

def analog_write_high
  nil
end

#convert_pin(pin) ⇒ Object



26
27
28
# File 'lib/denko/behaviors/board_proxy.rb', line 26

def convert_pin(pin)
  pin.to_i
end

#highObject



6
7
8
# File 'lib/denko/behaviors/board_proxy.rb', line 6

def high
  1
end

#lowObject



10
11
12
# File 'lib/denko/behaviors/board_proxy.rb', line 10

def low
  0
end

#set_pin_mode(pin, mode, options = {}) ⇒ Object



30
# File 'lib/denko/behaviors/board_proxy.rb', line 30

def set_pin_mode(pin, mode, options={}); end

#start_readObject



32
# File 'lib/denko/behaviors/board_proxy.rb', line 32

def start_read; end