Class: BeagleBoard::BeagleBoneBlack

Inherits:
BeagleBone show all
Defined in:
lib/beagleboard/beagleboneblack.rb

Instance Method Summary collapse

Methods inherited from AM335x

#method_missing, #respond_to_missing?

Constructor Details

#initialize(options = {}) ⇒ BeagleBoneBlack

Returns a new instance of BeagleBoneBlack.



39
40
41
42
43
44
45
46
47
48
49
# File 'lib/beagleboard/beagleboneblack.rb', line 39

def initialize(options = {})
  default_options = {
    capes: %i[emmc hdmi]
  }
  options = default_options.merge(options)

  super()

  extend Cape::Hdmi if options[:capes].include? :hdmi
  extend Cape::Emmc if options[:capes].include? :emmc
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BeagleBoard::AM335x

Instance Method Details

#p9_41Object



51
52
53
54
55
# File 'lib/beagleboard/beagleboneblack.rb', line 51

def p9_41
  return @p9_41 if instance_variable_defined?(:@p9_41)
  p9_41a.direction = :in
  @p9_41 = p9_41b # rubocop:disable Naming/VariableNumber
end

#p9_42Object



57
58
59
60
61
# File 'lib/beagleboard/beagleboneblack.rb', line 57

def p9_42
  return @p9_42 if instance_variable_defined?(:@p9_42)
  p9_42a.direction = :in
  @p9_42 = p9_42b # rubocop:disable Naming/VariableNumber
end