Class: BBB::Circuit

Inherits:
Object
  • Object
show all
Includes:
Attachable, Components
Defined in:
lib/BBB/circuit.rb

Overview

The idea here is to attach a piece of equipment to a circuit.

A component (e.g. Led or Servo) will define generic pins, like DigitalInput or AnalogOutput. And then, when the component gets connected to the circuit those pins will be initialized using the file system.

For now the attachment will be made onto specific pin numbers. For the BBB this might for example be :P8_3, however, the plan is to, in a future release, make sure that there are converters between the different kind of boards. For example by mapping P8_3 on BBB to P1 on an Arduino.

Constant Summary

Constants included from Components

BBB::Components::WMP

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Attachable

#component_groups, #components, included

Constructor Details

#initialize(options = {}) ⇒ Circuit

Returns a new instance of Circuit.



20
21
22
# File 'lib/BBB/circuit.rb', line 20

def initialize(options={})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



15
16
17
# File 'lib/BBB/circuit.rb', line 15

def options
  @options
end