Sha256: e54b3690aa2c1c1c19956cb02fcac61474debf1515144e19da110aaa2b770f16
Contents?: true
Size: 336 Bytes
Versions: 9
Compression:
Stored size: 336 Bytes
Contents
require 'artoo' connection :sphero, :adaptor => :sphero, :port => '127.0.0.1:4567' device :sphero, :driver => :sphero work do @rolling = false every(3.seconds) do puts "Rolling..." unless @rolling sphero.roll 90, rand(360) @rolling = true else sphero.stop @rolling = false end end end
Version data entries
9 entries across 9 versions & 1 rubygems