Skip to content

Commit

Permalink
Added ruby 2.2.2 support, and stopped the beeping
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Cunningham committed Mar 10, 2017
1 parent 823ff4b commit 05f4ad9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.1.1
ruby-2.2.2
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in ruby-ev3.gemspec
gemspec

gem 'artoo-joystick'
8 changes: 4 additions & 4 deletions examples/xbox_controller_robot.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rubygems'
require 'ev3'
require 'ev3/connections/wifi'
require 'ev3/connections/bluetooth'
require 'artoo'

INTERVAL = 0.1
Expand All @@ -22,9 +22,9 @@ class Robot
MAX_TURN = 40

def initialize
@brick = EV3::Brick.new(EV3::Connections::Wifi.new)
@brick = EV3::Brick.new(EV3::Connections::Bluetooth.new)
@brick.connect
@brick.beep
# @brick.beep

motors.each do |motor|
motor.stop
Expand Down Expand Up @@ -231,4 +231,4 @@ def signed_to_percentage(number)
puts "trigger lt: #{value[1]}"
handler.trigger_lt(value[1])
}
end
end
4 changes: 2 additions & 2 deletions ruby-ev3.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
spec.version = EV3::VERSION
spec.authors = ["Justin Cunningham"]
spec.email = ["[email protected]"]
spec.summary = %q{TODO: Write a short summary. Required.}
spec.description = %q{TODO: Write a longer description. Optional.}
spec.summary = %q{Gem for controlling the EV3 lego robot.}
spec.description = %q{Gem for controlling the EV3 lego robot.}
spec.homepage = ""
spec.license = "MIT"

Expand Down

0 comments on commit 05f4ad9

Please sign in to comment.