<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>arduino.rb</filename>
    </added>
    <added>
      <filename>steam.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -114,21 +114,25 @@ void run_demo() {
 }
 
 void recieve_bargraph_message() {
-  char msg[3];
+  char msg[2];
   int graph = 0;
+  int percent = 0;
   int value = 0;
   
-  while (Serial.available() &lt; 4)
+  while (Serial.available() &lt; 3)
     delay(10);
   
   graph = Serial.read() - 48;
   
-  for(int i = 0; i &lt; 3; i++)
+  for(int i = 0; i &lt; 2; i++)
     msg[i] = Serial.read();
     
-  value = atoi(msg);
+  percent = atoi(msg);
+  value = (int) (((float) percent / 99.0) * 254.0);
   Serial.print(&quot;Graph: &quot;);
   Serial.print(graph);
+  Serial.print(&quot; percent: &quot;);
+  Serial.print(percent);
   Serial.print(&quot; value: &quot;);
   Serial.println(value);
   barGraph.writeValue(graph, value);</diff>
      <filename>led_dimmer.pde</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e0a43ca535406c8a9c8bbbf98d0765af451bf3b4</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Bloom</name>
    <email>andrew@andrewkbloom.com</email>
  </author>
  <url>http://github.com/abloom/arduino_messaging/commit/a094dc5229ce19a631e6f63a4a431d0579b75f49</url>
  <id>a094dc5229ce19a631e6f63a4a431d0579b75f49</id>
  <committed-date>2009-05-18T21:01:42-07:00</committed-date>
  <authored-date>2009-05-18T21:01:42-07:00</authored-date>
  <message>added a new ruby script for CLI to speak to the Arduino</message>
  <tree>6a4b08a544fb0e045e30e1d9b3582a973637c6a1</tree>
  <committer>
    <name>Andrew Bloom</name>
    <email>andrew@andrewkbloom.com</email>
  </committer>
</commit>
