rad 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -5,3 +5,8 @@
5
5
  * most features of the Arduino software library functional
6
6
  * experimental implementation of the serial interface
7
7
  * complete rake-based build, compile, and upload cycle
8
+
9
+ == 0.0.2 2007-07-23
10
+
11
+ * 1 major enhancement:
12
+ * blink helper method
@@ -42,6 +42,14 @@ class ArduinoSketch
42
42
  end
43
43
 
44
44
  def add(st)
45
+ @helper_methods = <<-CODE
46
+ void blink(int pin, int ms){
47
+ digitalWrite(pin, 1);
48
+ delay(ms);
49
+ digitalWrite(pin, 0);
50
+ delay(ms);
51
+ }
52
+ CODE
45
53
  @helper_methods << "\n#{st}\n"
46
54
  end
47
55
 
data/lib/rad/version.rb CHANGED
@@ -2,7 +2,7 @@ module Rad #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -67,10 +67,7 @@
67
67
  class MySketch &lt; ArduinoSketch
68
68
  output_pin 7, :as =&gt; :led
69
69
  def loop
70
- digitalWrite led, true
71
- delay 500
72
- digitalWrite led, false
73
- delay 500
70
+ blink led, 500
74
71
  end
75
72
  end
76
73
  </pre>
@@ -120,7 +117,7 @@ end
120
117
 
121
118
  <p>Comments, questions, heckles, attacks, praises, and, (most especially) patches and contributions are welcome! Send email to <a href="mailto:greg@grabb.it">Greg Borenstein</a>.</p>
122
119
  <p class="coda">
123
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 22nd July 2007<br>
120
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 23rd July 2007<br>
124
121
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
125
122
  </p>
126
123
  </div>
data/website/index.txt CHANGED
@@ -25,10 +25,7 @@ This command will create a new RAD project directory (my_sketch/) inside of the
25
25
  class MySketch < ArduinoSketch
26
26
  output_pin 7, :as => :led
27
27
  def loop
28
- digitalWrite led, true
29
- delay 500
30
- digitalWrite led, false
31
- delay 500
28
+ blink led, 500
32
29
  end
33
30
  end
34
31
  </pre>
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: rad
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
6
+ version: 0.0.2
7
7
  date: 2007-07-23 00:00:00 -07:00
8
8
  summary: 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.
9
9
  require_paths: