https://github.com/uetchy/myo-ruby
Connect to Myo armband in Ruby
https://github.com/uetchy/myo-ruby
myo
Last synced: 6 months ago
JSON representation
Connect to Myo armband in Ruby
- Host: GitHub
- URL: https://github.com/uetchy/myo-ruby
- Owner: uetchy
- License: mit
- Created: 2014-12-19T12:45:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-31T01:17:32.000Z (almost 11 years ago)
- Last Synced: 2025-05-31T03:55:36.665Z (7 months ago)
- Topics: myo
- Language: Ruby
- Size: 192 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# myo-ruby
Connect to [Myo armband](https://www.thalmic.com/en/myo/) in Ruby
## Usage
You must start __Myo Connect.app__ first.
```ruby
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:
```ruby
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