<?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>The Daily Duino &#187; Decemilia</title>
	<atom:link href="http://dailyduino.com/archives/category/arduino/decimilia/feed" rel="self" type="application/rss+xml" />
	<link>http://dailyduino.com</link>
	<description>mostly daily arduino projects and news</description>
	<lastBuildDate>Fri, 04 Dec 2009 19:46:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>I got my new Duemilanove</title>
		<link>http://dailyduino.com/archives/278</link>
		<comments>http://dailyduino.com/archives/278#comments</comments>
		<pubDate>Fri, 07 Nov 2008 17:42:48 +0000</pubDate>
		<dc:creator>droops</dc:creator>
				<category><![CDATA[Decemilia]]></category>
		<category><![CDATA[Duemilanove]]></category>
		<category><![CDATA[SB]]></category>
		<category><![CDATA[droopsduino]]></category>

		<guid isPermaLink="false">http://dailyduino.com/?p=278</guid>
		<description><![CDATA[Its just like my Diecimilia&#8217;s except that when I have a shield on it, its so much easier to change the power supply. (from usb to 9v external) Here is a pic of my new baby along with some other boards.]]></description>
			<content:encoded><![CDATA[<p>Its just like my Diecimilia&#8217;s except that when I have a shield on it, its so much easier to change the power supply. (from usb to 9v external)</p>
<p>Here is a pic of my new baby along with some other boards.</p>

<a href='http://dailyduino.com/archives/278/duemilanove' title='duemilanove'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/11/duemilanove-150x150.jpg" class="attachment-thumbnail" alt="duemilanove" title="duemilanove" /></a>
<a href='http://dailyduino.com/archives/278/diecimilia' title='diecimilia'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/11/diecimilia-150x150.jpg" class="attachment-thumbnail" alt="diecimilia" title="diecimilia" /></a>
<a href='http://dailyduino.com/archives/278/freeduinosb' title='freeduinosb'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/11/freeduinosb-150x150.jpg" class="attachment-thumbnail" alt="freeduinosb" title="freeduinosb" /></a>
<a href='http://dailyduino.com/archives/278/droopsduino1' title='droopsduino1'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/11/droopsduino1-150x150.jpg" class="attachment-thumbnail" alt="droopsduino1" title="droopsduino1" /></a>

]]></content:encoded>
			<wfw:commentRss>http://dailyduino.com/archives/278/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Selector</title>
		<link>http://dailyduino.com/archives/169</link>
		<comments>http://dailyduino.com/archives/169#comments</comments>
		<pubDate>Tue, 30 Sep 2008 06:54:51 +0000</pubDate>
		<dc:creator>droops</dc:creator>
				<category><![CDATA[Decemilia]]></category>
		<category><![CDATA[Processing]]></category>

		<guid isPermaLink="false">http://dailyduino.com/?p=169</guid>
		<description><![CDATA[The color selector is 3 linear pots that control the rgb values of a square in a window. The window also displays the rgb values. Kinda simple to make, I reused a lot of code from the etch-a-sketch sketch. I am working on my processing book, so my projects should get better. The dot in [...]]]></description>
			<content:encoded><![CDATA[<p>The color selector is 3 linear pots that control the rgb values of a square in a window.  The window also displays the rgb values.  Kinda simple to make, I reused a lot of code from the etch-a-sketch sketch.  I am working on my processing book, so my projects should get better.</p>

<a href='http://dailyduino.com/archives/169/color1' title='color1'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/09/color1-150x150.jpg" class="attachment-thumbnail" alt="color1" title="color1" /></a>
<a href='http://dailyduino.com/archives/169/color2' title='color2'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/09/color2-150x150.jpg" class="attachment-thumbnail" alt="color2" title="color2" /></a>
<a href='http://dailyduino.com/archives/169/red' title='red'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/09/red-150x150.png" class="attachment-thumbnail" alt="red" title="red" /></a>
<a href='http://dailyduino.com/archives/169/green' title='green'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/09/green-150x150.png" class="attachment-thumbnail" alt="green" title="green" /></a>
<a href='http://dailyduino.com/archives/169/blue' title='blue'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/09/blue-150x150.png" class="attachment-thumbnail" alt="blue" title="blue" /></a>
<a href='http://dailyduino.com/archives/169/redgreen' title='redgreen'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/09/redgreen-150x150.png" class="attachment-thumbnail" alt="redgreen" title="redgreen" /></a>
<a href='http://dailyduino.com/archives/169/purple' title='purple'><img width="150" height="150" src="http://dailyduino.com/wp-content/uploads/2008/09/purple-150x150.png" class="attachment-thumbnail" alt="purple" title="purple" /></a>

<p>The dot in the red pick, is me not being able to use a mouse properly, the lines on the text seem to be a problem with the font I picked.</p>
<pre style="text-align: left;">/*
Color Selector

Takes 3 pots hooked up to analog 0,1,2 and uses them for the red green blue
values of a square.

Also displays the number for each color

*/

import processing.serial.*;

Serial myPort;
String inString;  // Input string from serial port:
String letter;
int number;
String numberS;
int redNum, greenNum, blueNum;

int x = 300; //somewhere around 200 or 300
int y = 300;

int lf = 10;

PFont font;

void setup() {
size(x, y);
//you may have to change the serial port
myPort = new Serial(this, Serial.list()[0], 9600);
myPort.bufferUntil(lf);

background(0);

font = loadFont("aakar-medium-20.vlw"); //make your own font

}

void draw() {

background(0);

textFont(font);

fill(255, 0, 0);
text(redNum, 10,30);

fill(0, 255, 0);
text(greenNum, 70,30);

fill(0, 0, 255);
text(blueNum, 130,30);

fill(redNum, greenNum, blueNum);
rect(0,50,x,y);

}

void serialEvent(Serial p) {
inString = (myPort.readString());

letter = inString.substring(0, 1);
numberS = inString.substring(2);
numberS = trim(numberS);
number = Integer.parseInt(numberS); //I could have combined a bit of this, but this code is for learning

if(letter.equals("R") == true) {
redNum = number;
}
if(letter.equals("G") == true) {
greenNum = number;
}
if(letter.equals("B") == true) {
blueNum = number;
}

}

/*Arduino Code

int bluePin = 2; //analog pin for right hand knob
int greenPin = 1;  //analog pin for left hand knob
int redPin = 0; //analog pin for center knob (width)

//Info for Serial Data
int id_1 = 'R';
int id_2 = 'G';
int id_3 = 'B';
int space = ' ';

void setup()
{
pinMode(redPin, INPUT);
pinMode(greenPin, INPUT);
pinMode(bluePin, INPUT);

Serial.begin(9600);
}

void loop()
{
int redNum = analogRead(redPin);
int greenNum = analogRead(greenPin);
int blueNum = analogRead(bluePin);

//the arduino will read from 0 to 1024 on teh analog pins, so we divide that by 4
redNum = redNum / 4;
greenNum = greenNum / 4;
blueNum = blueNum / 4;

printByte(id_1);
printByte(space);
printInteger(redNum);  printByte(10);

printByte(id_2);
printByte(space);
printInteger(greenNum);  printByte(10);

printByte(id_3);
printByte(space);
printInteger(blueNum);  printByte(10);

delay(10);

}

*/</pre>
]]></content:encoded>
			<wfw:commentRss>http://dailyduino.com/archives/169/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

