<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using an Arduino to control a blinkM with a photocell</title>
	<atom:link href="http://www.codingcolor.com/microcontrollers/using-an-arduino-to-control-a-blinkm-with-a-photocell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codingcolor.com/microcontrollers/using-an-arduino-to-control-a-blinkm-with-a-photocell/</link>
	<description>is Manuel Gonzalez</description>
	<lastBuildDate>Fri, 20 Jan 2012 11:45:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: An Arduino Pro Mini ultra-sonic beeping thingamajiggy- Coding Color</title>
		<link>http://www.codingcolor.com/microcontrollers/using-an-arduino-to-control-a-blinkm-with-a-photocell/comment-page-1/#comment-395</link>
		<dc:creator>An Arduino Pro Mini ultra-sonic beeping thingamajiggy- Coding Color</dc:creator>
		<pubDate>Sat, 26 Jun 2010 04:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingcolor.com/?p=2511#comment-395</guid>
		<description>[...] forward, lets add the BlinkM RGB Led. If you read my previous post on the BlinkM you will be familiar with the process. If not, grab your BlinkM and lets get familar with [...]</description>
		<content:encoded><![CDATA[<p>[...] forward, lets add the BlinkM RGB Led. If you read my previous post on the BlinkM you will be familiar with the process. If not, grab your BlinkM and lets get familar with [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Photo cell &#124; Garden Rock Lights</title>
		<link>http://www.codingcolor.com/microcontrollers/using-an-arduino-to-control-a-blinkm-with-a-photocell/comment-page-1/#comment-388</link>
		<dc:creator>Photo cell &#124; Garden Rock Lights</dc:creator>
		<pubDate>Sun, 20 Jun 2010 01:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingcolor.com/?p=2511#comment-388</guid>
		<description>[...] Using an Arduino to control a blinkM with a photocell- Coding Color [...]</description>
		<content:encoded><![CDATA[<p>[...] Using an Arduino to control a blinkM with a photocell- Coding Color [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.codingcolor.com/microcontrollers/using-an-arduino-to-control-a-blinkm-with-a-photocell/comment-page-1/#comment-368</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 10 Jun 2010 18:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingcolor.com/?p=2511#comment-368</guid>
		<description>Hi Tod,
I&#039;m honored! You are right, I overlooked the code, I&#039;ll update my post.
M</description>
		<content:encoded><![CDATA[<p>Hi Tod,<br />
I&#8217;m honored! You are right, I overlooked the code, I&#8217;ll update my post.<br />
M</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tod E. Kurt</title>
		<link>http://www.codingcolor.com/microcontrollers/using-an-arduino-to-control-a-blinkm-with-a-photocell/comment-page-1/#comment-367</link>
		<dc:creator>Tod E. Kurt</dc:creator>
		<pubDate>Thu, 10 Jun 2010 18:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingcolor.com/?p=2511#comment-367</guid>
		<description>Hi,
This is an excellent tutorial on how to set up an Arduino project and how to get a BlinkM going!

I think you can make the displayColor() function even smaller by removing the decToBcd() calls.  BlinkM functions take regular values, you don&#039;t need to convert them. So the function might look like:


void displayColor(int val)
{
  switch(val)
  {
    case 0:
      //0;34;102 Royal Blue 5
      BlinkM_fadeToRGB(blinkm_addr, 0,34,102 ); 
      ledState = 0;
      break;
    case 1:
      //255;0;0 RED
      BlinkM_fadeToRGB(blinkm_addr, 255,0,0 ); 
      ledState = 1;
      break;
   }
}
</description>
		<content:encoded><![CDATA[<p>Hi,<br />
This is an excellent tutorial on how to set up an Arduino project and how to get a BlinkM going!</p>
<p>I think you can make the displayColor() function even smaller by removing the decToBcd() calls.  BlinkM functions take regular values, you don&#8217;t need to convert them. So the function might look like:</p>
<p>void displayColor(int val)<br />
{<br />
  switch(val)<br />
  {<br />
    case 0:<br />
      //0;34;102 Royal Blue 5<br />
      BlinkM_fadeToRGB(blinkm_addr, 0,34,102 );<br />
      ledState = 0;<br />
      break;<br />
    case 1:<br />
      //255;0;0 RED<br />
      BlinkM_fadeToRGB(blinkm_addr, 255,0,0 );<br />
      ledState = 1;<br />
      break;<br />
   }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

