examples/conway_sphero.rb in artoo-0.2.0 vs examples/conway_sphero.rb in artoo-0.3.0

- old
+ new

@@ -1,8 +1,8 @@ require 'artoo/robot' -class SpheroRobot < Artoo::Robot +class ConwaySpheroRobot < Artoo::Robot connection :sphero, :adaptor => :sphero device :sphero, :driver => :sphero #api :host => '127.0.0.1', :port => '8080' @@ -57,11 +57,11 @@ "127.0.0.1:4564" => "/dev/tty.Sphero-OBG-RN-SPP", "127.0.0.1:4565" => "/dev/tty.Sphero-GOB-RN-SPP", "127.0.0.1:4566" => "/dev/tty.Sphero-PYG-RN-SPP"} robots = [] SPHEROS.each_key {|p| - robots << SpheroRobot.new(:connections => + robots << ConwaySpheroRobot.new(:connections => {:sphero => {:port => p}}) } -SpheroRobot.work!(robots) +ConwaySpheroRobot.work!(robots)