<?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>My Applications &#8211; Eliedh&#8217;s Blog</title>
	<atom:link href="http://www.eliedh.com/category/my-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eliedh.com</link>
	<description></description>
	<lastBuildDate>Sun, 21 Apr 2013 07:39:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>Drive a 7-Segment LED with an Arduino</title>
		<link>http://www.eliedh.com/2013/04/13/drive-a-7-segment-led-with-an-arduino/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=drive-a-7-segment-led-with-an-arduino</link>
		
		<dc:creator><![CDATA[Eliedh]]></dc:creator>
		<pubDate>Sat, 13 Apr 2013 12:23:59 +0000</pubDate>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[My Applications]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[7-segment]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[led]]></category>
		<guid isPermaLink="false">http://www.eliedh.com/?p=711</guid>

					<description><![CDATA[Last week I took a day off work and started experimenting with Arduino. Arduino is an open-source electronics prototyping platform that enables anyone to create interactive objects. During the week I started doing basic stuff using simple components such as blinking LEDs and playing tunes with a buzzer, and yesterday I experimented with multiple LEDs. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Last week I took a day off work and started experimenting with Arduino. Arduino is an open-source electronics prototyping platform that enables anyone to create interactive objects. During the week I started doing basic stuff using simple components such as blinking LEDs and playing tunes with a buzzer, and yesterday I experimented with multiple LEDs. After that I wanted to try and do something with a 7-Segment LED display so I found this <a href="http://blog.makezine.com/projects/drive-a-7-segment-led-with-an-arduino/" target="_blank">tutorial</a> that enabled me to make the circuit and learn the code that should drive the display.</p>
<p>Unfortunately the provided code did not work and I had to modify a lot of parts to finally get the display to work. I had to invert the &#8220;HIGH&#8221; and &#8220;LOW&#8221; params in all the function calls and change the way the constants are defined in the beginning.</p>
<p>I can&#8217;t really explain to you why there is such a difference between my working code and the code provided in the article I based myself on since I&#8217;m still a beginner. I might be using a different display and a different version of the IDE. When I&#8217;m advanced enough to figure that out I&#8217;ll make sure to update the article. If you can explain the reason to me please do so in the comments.</p>
<p>Here&#8217;s the updated code, I also created an additional function that plays a little &#8220;snake&#8221; animation on the display.<span id="more-711"></span></p>
<pre>
<span style="color: #7e7e7e;">//7-segment LED by eliedh.com</span>
<span style="color: #cc6600;">const</span> <span style="color: #cc6600;">int</span> A = 8;
<span style="color: #cc6600;">const</span> <span style="color: #cc6600;">int</span> B = 9;
<span style="color: #cc6600;">const</span> <span style="color: #cc6600;">int</span> C = 2;
<span style="color: #cc6600;">const</span> <span style="color: #cc6600;">int</span> D = 3;
<span style="color: #cc6600;">const</span> <span style="color: #cc6600;">int</span> E = 4;
<span style="color: #cc6600;">const</span> <span style="color: #cc6600;">int</span> F = 5;
<span style="color: #cc6600;">const</span> <span style="color: #cc6600;">int</span> G = 6;

<span style="color: #cc6600;">void</span> clr()
{
  <span style="color: #7e7e7e;">//Clears the LED</span>
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">LOW</span>);

}

<span style="color: #cc6600;">void</span> drawLoop()
{
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">delay</span>(100); 
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">delay</span>(100);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">delay</span>(100);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">delay</span>(100); 
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">delay</span>(100);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">delay</span>(100);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">delay</span>(100);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">delay</span>(100);
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">delay</span>(100);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">delay</span>(100);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">delay</span>(100);
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">delay</span>(100);
}

<span style="color: #cc6600;">void</span> char_A()
{
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_B()
{
  <span style="color: #7e7e7e;">//Displays B</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_C()
{
  <span style="color: #7e7e7e;">//Displays C</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_D()
{
  <span style="color: #7e7e7e;">//Displays D</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_E()
{
  <span style="color: #7e7e7e;">//Displays E</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_F()
{
  <span style="color: #7e7e7e;">//Displays F</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_G()
{
  <span style="color: #7e7e7e;">//Displays C</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_H()
{
  <span style="color: #7e7e7e;">//Displays H</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_I()
{
  <span style="color: #7e7e7e;">//Displays I</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">LOW</span>);
}

<span style="color: #cc6600;">void</span> char_J()
{
  <span style="color: #7e7e7e;">//Displays J</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_L()
{
  <span style="color: #7e7e7e;">//Displays L</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> char_R()
{
  <span style="color: #7e7e7e;">//Displays R</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> one()
{
  <span style="color: #7e7e7e;">//Displays 1</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> two()
{
  <span style="color: #7e7e7e;">//Displays 2</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> three()
{
  <span style="color: #7e7e7e;">//Displays 3</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">LOW</span>);
}

<span style="color: #cc6600;">void</span> four()
{
  <span style="color: #7e7e7e;">//Displays 4</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">LOW</span>);
}

<span style="color: #cc6600;">void</span> five()
{
  <span style="color: #7e7e7e;">//Displays 5</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">LOW</span>);
}

<span style="color: #cc6600;">void</span> six()
{
  <span style="color: #7e7e7e;">//Displays 6</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> seven()
{
  <span style="color: #7e7e7e;">//Displays 7</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">LOW</span>);
}

<span style="color: #cc6600;">void</span> eight()
{
  <span style="color: #7e7e7e;">//Displays 8</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> nine()
{
  <span style="color: #7e7e7e;">//Displays 9</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">LOW</span>);
}

<span style="color: #cc6600;">void</span> zero()
{
  <span style="color: #7e7e7e;">//Displays 0</span>
  <span style="color: #cc6600;">digitalWrite</span>(D, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(E, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(F, <span style="color: #006699;">LOW</span>);
  <span style="color: #cc6600;">digitalWrite</span>(G, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(A, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(B, <span style="color: #006699;">HIGH</span>);
  <span style="color: #cc6600;">digitalWrite</span>(C, <span style="color: #006699;">HIGH</span>);
}

<span style="color: #cc6600;">void</span> LoopDisplay()
{
  <span style="color: #7e7e7e;">//Start with a small "animation"</span>
  drawLoop();
  <span style="color: #7e7e7e;">//Loop through all Chars and Numbers</span>
  char_A();
  <span style="color: #cc6600;">delay</span>(1000);
  char_B();
  <span style="color: #cc6600;">delay</span>(1000);
  char_C();
  <span style="color: #cc6600;">delay</span>(1000);
  char_D();
  <span style="color: #cc6600;">delay</span>(1000);
  char_E();
  <span style="color: #cc6600;">delay</span>(1000);
  char_F();
  <span style="color: #cc6600;">delay</span>(1000);
  char_G();
  <span style="color: #cc6600;">delay</span>(1000);
  char_H();
  <span style="color: #cc6600;">delay</span>(1000);
  char_I();
  <span style="color: #cc6600;">delay</span>(1000);
  char_J();
  <span style="color: #cc6600;">delay</span>(1000);
  char_L();
  <span style="color: #cc6600;">delay</span>(1000);
  char_R();
  <span style="color: #cc6600;">delay</span>(1000);
  one();
  <span style="color: #cc6600;">delay</span>(1000);
  two();
  <span style="color: #cc6600;">delay</span>(1000);
  three();
  <span style="color: #cc6600;">delay</span>(1000);
  four();
  <span style="color: #cc6600;">delay</span>(1000);
  five();
  <span style="color: #cc6600;">delay</span>(1000);
  six();
  <span style="color: #cc6600;">delay</span>(1000);
  seven();
  <span style="color: #cc6600;">delay</span>(1000);
  eight();
  <span style="color: #cc6600;">delay</span>(1000);
  nine();
  <span style="color: #cc6600;">delay</span>(1000);
  zero();
  <span style="color: #cc6600;">delay</span>(1000);
}

<span style="color: #cc6600;">void</span> <span style="color: #cc6600;"><b>setup</b></span>()
{
  <span style="color: #7e7e7e;">//Setup our pins</span>
  <span style="color: #cc6600;">pinMode</span>(A, <span style="color: #006699;">OUTPUT</span>);
  <span style="color: #cc6600;">pinMode</span>(B, <span style="color: #006699;">OUTPUT</span>);
  <span style="color: #cc6600;">pinMode</span>(C, <span style="color: #006699;">OUTPUT</span>);
  <span style="color: #cc6600;">pinMode</span>(D, <span style="color: #006699;">OUTPUT</span>);
  <span style="color: #cc6600;">pinMode</span>(E, <span style="color: #006699;">OUTPUT</span>);
  <span style="color: #cc6600;">pinMode</span>(F, <span style="color: #006699;">OUTPUT</span>);
  <span style="color: #cc6600;">pinMode</span>(G, <span style="color: #006699;">OUTPUT</span>);
  <span style="color: #cc6600;"><b>Serial</b></span>.<span style="color: #cc6600;">begin</span>(9600);  <span style="color: #7e7e7e;">//Begin serial communcation</span>

}

<span style="color: #cc6600;">void</span> <span style="color: #cc6600;"><b>loop</b></span>()
{
  <span style="color: #cc6600;"><b>Serial</b></span>.<span style="color: #cc6600;">println</span>(<span style="color: #006699;">"Starting\n"</span>);
  LoopDisplay();

}</pre>
<p>In case you&#8217;re wondering, I got the Arduino board, the 7-segment display and a lot of other cool components in this dx.com <a href="http://dx.com/p/arduino-compatible-component-basic-element-pack-starter-kit-142572" target="_blank">Arduino starter kit</a>. (I&#8217;m not sure if this code will only work with 7-segment displays bought from dealextreme).</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>A Digital Ruler</title>
		<link>http://www.eliedh.com/2007/11/19/a-digitial-ruler/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-digitial-ruler</link>
					<comments>http://www.eliedh.com/2007/11/19/a-digitial-ruler/#comments</comments>
		
		<dc:creator><![CDATA[Eliedh]]></dc:creator>
		<pubDate>Mon, 19 Nov 2007 20:42:41 +0000</pubDate>
				<category><![CDATA[My Applications]]></category>
		<guid isPermaLink="false">http://www.eliedh.com/2007/11/19/a-digitial-ruler/</guid>

					<description><![CDATA[A lot of time when I am modifying or making a site, I need to get the width and height of a certain area of the screen. Usually I used to take a screenshot of the screen, go to photoshop and cut the area I need to see the size of it, but that used [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>A lot of time when I am modifying or making a site, I need to get the width and height of a certain area of the screen. Usually I used to take a screenshot of the screen, go to photoshop and cut the area I need to see the size of it, but that used to take time so yesterday I made this little tool that does the job for me.</p>
<p>It is a window with an empty area in it, just put the window around anything you want to measure and it will give you the size of it directly (in Pixels). You can also set the window to take a certain size you need or change its color.</p>
<p>Here&#8217;s a Picture of the Digital Ruler running:</p>
<p align="center"><img decoding="async" src="http://eliedh.com/wp-content/uploads/2007/11/ruler-screenshot.jpg" alt="ruler screenshot" /></p>
<p> To download and run the program you need to agree to its <a href="http://www.eliedh.com/downloads/edheula.txt">EULA</a>, If the program doesn&#8217;t run you probably don&#8217;t have the .Net Framework 2.0 (available in most computers running Vista and XP) so download it from <a href="http://msdn.microsoft.com/netframework/downloads/updates/default.aspx">here</a>.</p>
<p><a href="http://www.eliedh.com/ccount/click.php?id=4">DOWNLOAD</a></p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.eliedh.com/2007/11/19/a-digitial-ruler/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Morse Code Translator V1.0</title>
		<link>http://www.eliedh.com/2007/10/27/morse-code-translator-v10/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=morse-code-translator-v10</link>
					<comments>http://www.eliedh.com/2007/10/27/morse-code-translator-v10/#comments</comments>
		
		<dc:creator><![CDATA[Eliedh]]></dc:creator>
		<pubDate>Sat, 27 Oct 2007 07:57:42 +0000</pubDate>
				<category><![CDATA[My Applications]]></category>
		<category><![CDATA[Software]]></category>
		<guid isPermaLink="false">http://www.eliedh.com/2007/10/27/morse-code-translator-v10/</guid>

					<description><![CDATA[Morse Code Translator V1.0 is a small and easy to use program I wrote last semester that can translate text to and from Morse code, The program can also &#8220;read&#8221; Morse code and convert existing Morse code to a code that can be understood by it. Screen shot: Features: -Text Input and Output You can [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Morse Code Translator V1.0 is a small and easy to use program I wrote last semester that can translate text to and from Morse code, The program can also &#8220;read&#8221; Morse code and convert existing Morse code to a code that can be understood by it.</p>
<p><strong>Screen shot: </strong></p>
<p align="center"> <a href="http://eliedh.com/wp-content/uploads/2007/10/morse-code-translator.jpg"><img decoding="async" src="http://eliedh.com/wp-content/uploads/2007/10/morse-code-translator-p.jpg" alt="Morse Code Translator Preview" /></a></p>
<p><strong>Features: </strong></p>
<p>-Text Input and Output</p>
<p>You can modify Input text in different ways:<br />
1-    Directly writing in the text-box.<br />
2-    Paste input text by pressing CTRL+V or by going to Edit &gt; Paste Input.<br />
3-    By selecting “Clear Input text” in the “After Conversion settings”<br />
4-    By selecting “Clear Input” in the Edit Menu.</p>
<p>You can use the Output text in different ways:<br />
1-    By selecting “Cut Output” and “Copy Output” in the Edit Menu<br />
2-    By selecting “Clear Output” in the Edit Menu.<br />
3-    By selecting “Copy Output text” in the “After Conversion settings”</p>
<p>-Settings:</p>
<p>First you must choose the type of translation (Morse to Text or Text to Morse) after that you can change those settings:</p>
<p>A-    Morse Code to use:</p>
<p>1- Letters and Numerals (A to Z, 0 to 9) will be used by default during translations; all other letters will be replaced by a character or a word you choose.<br />
This option cannot be deselected<br />
2- You can choose to deselect the usage of Punctuation and Prosigns, if you do this all other letters will be replaced by a character or a word you choose.</p>
<p>B-    Character replacement</p>
<p>If the program doesn’t recognize a letter during translation it will replace with a word or a sign of your choice, you can select one of the preset words or letters or enter your personal replacement.</p>
<p>C-    After Conversion<br />
After the program finishes converting the text, it can perform any operation chosen at this point, if you select “Copy Morse Code” it will copy the generated translation, if you choose “Clear Input Text” it will clear the input text</p>
<p>-M-Player</p>
<p>M-Player is a little tool that allows you to play the Morse Code, to use it select where it should read from and press play.<br />
Note that once Morse Playing starts, it cannot be stopped. (Will be fixed in an upcoming version)</p>
<p>-Morse Code Converter</p>
<p>Morse Code Converter is a tool that lets you convert any Morse Code to a Morse Code that can be used in the Morse Code Translator.<br />
You can choose the Auto Conversion Mode, in this mode the Converter will try to detect each character and convert it, If this mode doesn’t work, you can choose your settings manually.<br />
The converted code will be pasted in the Input Box of the Morse Code Converter.</p>
<p>-Minimum Requirements:</p>
<p>To run the Morse Code Translator you must have the <a href="http://msdn.microsoft.com/netframework/downloads/updates/default.aspx">.Net Framework</a> (Already available in most computers running XP and Vista) so download it if the program doesn&#8217;t start.</p>
<p><strong>Support:</strong></p>
<p>Please use the comment section to ask a question about the Morse Code Translator.</p>
<p><strong>Download:</strong></p>
<p>To Use the program you must agree to its <a href="http://www.eliedh.com/downloads/edheula.txt">EULA</a>.</p>
<p><a href="http://www.eliedh.com/ccount/click.php?id=3"><strong>DOWNLOAD </strong></a></p>
]]></content:encoded>
					
					<wfw:commentRss>http://www.eliedh.com/2007/10/27/morse-code-translator-v10/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>
