Class: Firmata::Board::Pin

Inherits:
Struct
  • Object
show all
Defined in:
lib/firmata/board.rb

Overview

Internal: Data structure representing a pin on Arduino.

Instance Attribute Summary collapse

Instance Attribute Details

#analog_channelObject

Returns the value of attribute analog_channel

Returns:

  • (Object)

    the current value of analog_channel



10
11
12
# File 'lib/firmata/board.rb', line 10

def analog_channel
  @analog_channel
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



10
11
12
# File 'lib/firmata/board.rb', line 10

def mode
  @mode
end

#supported_modesObject

Returns the value of attribute supported_modes

Returns:

  • (Object)

    the current value of supported_modes



10
11
12
# File 'lib/firmata/board.rb', line 10

def supported_modes
  @supported_modes
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



10
11
12
# File 'lib/firmata/board.rb', line 10

def value
  @value
end