<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>uRaNGaTaNG &#187; light</title>
	<atom:link href="http://www.rngtng.com/tag/light/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rngtng.com</link>
	<description>TobiTobes Tech Weblog featuring Ruby, Rails, Web development, Arduino, Processing, Geekstuff and more...</description>
	<lastBuildDate>Thu, 01 Jul 2010 11:36:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Second try: 2&#215;5 LED Matrix Arduino controlled</title>
		<link>http://www.rngtng.com/2009/04/28/second-try-2x5-led-matrix-arduino-controlled/</link>
		<comments>http://www.rngtng.com/2009/04/28/second-try-2x5-led-matrix-arduino-controlled/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 10:14:04 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Arduino & Co.]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=75</guid>
		<description><![CDATA[This time a more sophisticated example. I started to develop an LED Matrix controller and editor in Processing (like every does his first steps on arduino, I think). By now, you can create a sequence by selecting the LEDs to light up and move over to the next frame. Finished, run it on the Arduino [...]]]></description>
			<content:encoded><![CDATA[<p>This time a more sophisticated example. I started to develop an LED Matrix controller and editor in <a href="http://www.processing.org">Processing</a> (like every does his first steps on arduino, I think).<br />
By now, you can create a sequence by selecting the LEDs to light up and move over to the next frame. Finished, run it on the Arduino and control the speed &#8211; a nice and quick <del datetime="2009-05-12T10:14:04+00:00">toy</del> way to create any light patterns you can think of easily. </p>
<p><a href="http://www.rngtng.com/2009/04/28/second-try-2x5-led-matrix-arduino-controlled/"><em>Click here to view the embedded video.</em></a></p>
<p>More examples and source code soon to come&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/04/28/second-try-2x5-led-matrix-arduino-controlled/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My first Arduion test: 10 LEDs running light</title>
		<link>http://www.rngtng.com/2009/04/24/my-first-arduion-test-10-leds-running-light/</link>
		<comments>http://www.rngtng.com/2009/04/24/my-first-arduion-test-10-leds-running-light/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 19:05:19 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Arduino & Co.]]></category>
		<category><![CDATA[buton]]></category>
		<category><![CDATA[interrupt]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[running]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=73</guid>
		<description><![CDATA[Check this out: That my first proper Arduino test, controlling a 10 LED running light. I attached a small button via interrupt as well to start &#38; stop the light. More to come soon, stay tuned! Here the (very,very ugly) source code: int ledPin = 3; // First LED connected to digital pin 13 volatile [...]]]></description>
			<content:encoded><![CDATA[<p>Check this out:<br />
<p><a href="http://www.rngtng.com/2009/04/24/my-first-arduion-test-10-leds-running-light/"><em>Click here to view the embedded video.</em></a></p></p>
<p>That my first proper Arduino test, controlling a 10 LED running light. I attached a small button via interrupt as well to start &amp; stop the light. More to come soon, stay tuned!</p>
<p>Here the (very,very ugly) source code:</p>
<pre class="brush: cpp;">
int ledPin = 3;      // First LED connected to digital pin 13
volatile int stop = LOW;

void setup()
{
  Serial.begin(38400);
  for( int i = 0; i &lt; 10; i++) {
     pinMode(ledPin + i, OUTPUT);
  }
   attachInterrupt(0, stopit, RISING);    //Button attached to Pin 2
}

int i = 0;
void loop()
{
    for( i = 0; i &lt; 7 &amp;&amp; !stop; i++) {
      blink(ledPin + i);
    }
    for( i; i &gt;= 1 &amp;&amp; !stop; i--) {
      blink(ledPin + i);
    }
    for( i = 0; i &lt; 10 &amp;&amp; !stop; i++) {
      blink(ledPin + i);
    }
    for( i; i &gt;= 3 &amp;&amp; !stop; i--) {
      blink(ledPin + i);
    }
    for( i; i &lt; 10 &amp;&amp; !stop; i++) {
      blink(ledPin + i);
    }
    for( i = 9; i &gt;= 1 &amp;&amp; !stop; i--) {
      blink(ledPin + i);
    }
}

void stopit()
{
  delayMicroseconds(1000);
  stop = !stop;
}

void blink( int pin ) {
      digitalWrite(pin, HIGH);
      delay(120 - abs( pin - 8 ) * 20);
      digitalWrite(pin, LOW);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/04/24/my-first-arduion-test-10-leds-running-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
