All Projects → uetchy → myo-ruby

uetchy / myo-ruby

Licence: MIT license
Connect to Myo armband in Ruby

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to myo-ruby

myo-android-2048
The game 2048, playable with a Myo
Stars: ✭ 32 (+128.57%)
Mutual labels:  myo
pyomyo
PyoMyo - Python Opensource Myo armband library
Stars: ✭ 61 (+335.71%)
Mutual labels:  myo
myo-armband-nn
Gesture recognition using myo armband via neural network (tensorflow library).
Stars: ✭ 33 (+135.71%)
Mutual labels:  myo

myo-ruby

Connect to Myo armband in Ruby

Usage

You must start Myo Connect.app first.

require 'myo'

Myo.connect do |myo|
  myo.on :connected do
    puts "Myo connected!"
  end

  myo.on :pose do |pose, edge|
    puts "#{pose}: #{edge}"
  end

  myo.on :periodic do |orientation|
    puts orientation.accel.x
  end
end

Installation

Add this line to your application's Gemfile:

gem 'myo-ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install myo-ruby

Contributing

  1. Fork it ( https://github.com/uetchy/myo-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].