Project

rbone

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
This gem provides a simple interface for writing Arduino-style programs for the BeagleBone.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
 Project Readme

Rbone

Build Status

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request