Module: BrickPi

Defined in:
lib/brick_pi/bot.rb,
lib/brick_pi/motor.rb,
lib/brick_pi/sensor.rb,
lib/brick_pi/version.rb,
lib/brick_pi/configuration.rb,
ext/brick_pi/native.c

Defined Under Namespace

Modules: Configuration, Native Classes: Bot, Motor, Sensor

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.create(&block) ⇒ Object



3
4
5
6
7
# File 'lib/brick_pi/configuration.rb', line 3

def self.create &block
  bot = BrickPi::Bot.new
  bot.configure &block
  bot
end