Rbone
Rbone makes it easy to write Arduino-style applications for your BeagleBone in Ruby.
Installation
Add this line to your application's Gemfile:
gem 'rbone'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rbone
Usage
Blink an LED!
#!/usr/bin/env ruby
require 'rbone'
Rbone::App.new do |app|
app.setup do
pinMode(P8_3, OUTPUT)
end
app.loop do
digitalWrite(P8_3, HIGH)
delay(1000)
digitalWrite(P8_3, LOW)
delay(1000)
end
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request