require 'artoo' connection :arduino, :adaptor => :firmata, :port => '/dev/ttyACM0' device :led, :driver => :led, :pin => 13 device :button, :driver => :button, :pin => 2 work do on button, :push => proc {led.toggle} end
require 'artoo' connection :ardrone, :adaptor => :ardrone device :drone, :driver => :ardrone work do drone.start drone.take_off after(25.seconds) { drone.hover.land } after(30.seconds) { drone.stop } end
By solojavier
Presentation of ruby robotics framework "artoo". First presented on RubyGDL