Skip to content

Instantly share code, notes, and snippets.

@hardbap
Created September 20, 2012 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hardbap/3755828 to your computer and use it in GitHub Desktop.
Save hardbap/3755828 to your computer and use it in GitHub Desktop.
Wall-E readme

Wall·E

Ruby powered robots.

Prerequisites

  1. Download and install the Arduio IDE for your OS
  2. Download and unzip Firmata 2.2
  3. Plug in your Arduino via USB
  4. Open the Arduino IDE, select: File > Open > [Path from step 2] > examples > StandardFirmata
  5. Click the Upload button
  6. Make note of the serial port: Tools > Serial Port

Installation

Add this line to your application's Gemfile:

gem 'wall_e'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wall_e

Usage

require 'wall_e'

WallE::Assembler.build do

  led = Led(3)
  rate = 0.75

  repeat do
    led.toggle
    delay rate
  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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment