GithubHelp home page GithubHelp logo

koki-h / rad Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atduskgreg/rad

1.0 3.0 0.0 604 KB

Ruby Arduino Development: a framework for programming the Arduino physcial computing platform using Ruby

Home Page: http://rad.rubyforge.org/

License: GNU General Public License v2.0

rad's Introduction

Welcome to RAD (Ruby Arduino Development)

RAD is a framework for programming the Arduino physcial computing platform using Ruby. RAD converts Ruby scripts written using a set of Rails-like conventions and helpers into C source code which can be compiled and run on the Arduino microcontroller. It also provides a set of Rake tasks for automating the compilation and upload process.

For a full introduction see rad.rubyforge.org

Documentation

The main documentation is here: ArduinoSketch.

See also the Arduino Software reference: www.arduino.cc/en/Reference/HomePage

Examples

See the examples directory for lots of examples of RAD in action: github.com/atduskgreg/rad/tree/master/lib/examples

The atduskgreg/rad wiki also contains a growing library of examples and hardware tutorials: github.com/atduskgreg/rad/wikis

Getting Started

To install the edge gem:

# Update to RubyGems 1.2.0 before proceeding!
$ gem sources -a http://gems.github.com (you only have to do this once)
$ sudo gem install atduskgreg-rad

A very old and feature poor (though slightly more ‘stable’ RAD) is available from RubyGems:

$ sudo gem install rad

We plan to push tagged releases to RubyGems at key points. The 0.3 release should be coming up soon.

Run the rad command to create a new project:

$ rad my_project

Write a sketch that will blink a single LED every 500ms:

class MyProject < ArduinoSketch
	output_pin 13, :as => led
	
	def loop
		blink led, 500
	end
end

Attach your Arduino and use rake to complile and upload your sketch:

$ rake make:upload

Get Involved

Cheers? Jeers? Wanna help out? Contact Greg Borenstein: greg [dot] borenstein [at] gmail [dot] com

rad's People

Contributors

madrona avatar evanfarrar avatar elliottcable avatar kristopher avatar

Stargazers

Angus H. avatar

Watchers

Koki Hashimoto avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.