<?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>lithium flowers bloom &#187; Week6</title>
	<atom:link href="http://leejayxia.com/blog/tag/week6/feed/" rel="self" type="application/rss+xml" />
	<link>http://leejayxia.com/blog</link>
	<description>the weblog</description>
	<lastBuildDate>Sat, 15 May 2010 20:52:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Response to Understanding Media</title>
		<link>http://leejayxia.com/blog/response-to-understanding-media/</link>
		<comments>http://leejayxia.com/blog/response-to-understanding-media/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 21:10:20 +0000</pubDate>
		<dc:creator>L.J</dc:creator>
				<category><![CDATA[Communications Lab]]></category>
		<category><![CDATA[Fall 2008]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[Reading]]></category>
		<category><![CDATA[Week6]]></category>

		<guid isPermaLink="false">http://leejayxia.com/blog/?p=254</guid>
		<description><![CDATA[I was usually slow in reading assignment not only because I read really slowly but also that it&#8217;s so easy to get me distracted from reading a book especialy while the laptop is on (for looking up words in the dictionary! seriously!). There was a fantastic stop motion animation which perfectly described my situation and [...]]]></description>
			<content:encoded><![CDATA[<p>I was usually slow in reading assignment not only because I read really slowly but also that it&#8217;s so easy to get me distracted from reading a book especialy while the laptop is on (for looking up words in the dictionary! seriously!). There was a fantastic stop motion animation which perfectly described my situation and I still love it. (Watch &#8220;<a href="http://www.youtube.com/watch?v=37wR_TWdVy0" target="_blank">Procrastination</a>&#8221; by John Kelly.)</p>
<p>[<em>end of procrastination</em>]</p>
<p>Fairly speaking I&#8217;m doing much better with this book (than, of couse, Ong&#8217;s Orality and Literacy, I never post my response yet since I haven&#8217;t finished. It&#8217;s sad but I&#8217;m sure I would finish some day before the end of this semester ), and I really appreciated the chapter of &#8220;Media Hot and Cold&#8221;.</p>
<p>The &#8220;medium is the message&#8221; idea is like widely accepted these days. It feels like tendency that the medium itself becomes the point and (some) people are tending not to care about the &#8220;content&#8221;. Now we have an explanation fair enough that this is the message itself. Several years back almost all governmental departments are setting up websites just to follow the hype of &#8220;e-government&#8221;. So did education instititions with e-education thing. It&#8217;s more like a fashion to toss everything online and they made their point. But one thing I&#8217;m not sure about is that while the medium becomes the message, where should we look for the real/traditional content other than the manipulated message? Maybe have to be in a traditional medium?</p>
<p>The categorizing of media into cold and hot looks surprisingly practical. I&#8217;m totally in with the definition that &#8220;hot medium is one that extends one single sense in &#8216;high definition&#8217; &#8230; the state of being well filled with data&#8221;. It&#8217;s interesting that radio was categorized as the hot media maybe it&#8217;s just &#8220;cooling&#8221; down after 60s.</p>
<p>While I&#8217;m thinking of categorizing the Web 2.0 hype and traditional Web 1.0 era online mediums, it&#8217;s becoming hard to get to a conclusion. The old school websites are static and scattered, and they required the visitors to &#8220;look into depths&#8221; and to compile the information themselves. It fulfills the definition of &#8220;cool media&#8221; of being low-fi and participation-required. Web 2.0 seems to be a bit confusing. The core value being collaboration and share, the Web 2.0 online services are looking for much more participation from their users, are they cool media then? My answer is no. The seemingly participation takes place at the production end of the media, at the broadcasting end these medias are definitely hi-fi and overwhelming for the perceivers. That&#8217;s why we are more and more bugged by the &#8220;information overload&#8221; and have to find a way out of there.</p>
<p>I especially like the ending statement of the chapter that:</p>
<blockquote><p>So the hotting-up of one sense tends to effect hypnosis, and the cooling of all senses tends to result in hallucination.</p></blockquote>
<p>I started a website in early 2007  for people to share their dreams. With the other cofounder we set up some basic principles of the website that 1) we moderate all submissions other than completely open sharing, 2) we do not encourage people to interprete the dreams in any form of &#8220;sign reading&#8221; or whatever. It now seems that we created a super &#8220;cold&#8221; media back then, and it would be wonderful if people get hallucination from our site.</p>
]]></content:encoded>
			<wfw:commentRss>http://leejayxia.com/blog/response-to-understanding-media/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visualizing Smell: Acquire and Parse</title>
		<link>http://leejayxia.com/blog/visualizing-smell-acqure-and-parse/</link>
		<comments>http://leejayxia.com/blog/visualizing-smell-acqure-and-parse/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 06:35:19 +0000</pubDate>
		<dc:creator>L.J</dc:creator>
				<category><![CDATA[Visualizing the Five Senses]]></category>
		<category><![CDATA[Fall 2008]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[smell]]></category>
		<category><![CDATA[Visualization]]></category>
		<category><![CDATA[Week6]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://leejayxia.com/blog/?p=245</guid>
		<description><![CDATA[I spent the whole afternoon today writing some very ugly codes to extract the space gradient and larvae path data from the original xml file and it&#8217;s almost done. I&#8217;m now able to sketch with the raw data and have my own first visual impression on the data: Next steps: Performance!!! current performance is too [...]]]></description>
			<content:encoded><![CDATA[<p>I spent the whole afternoon today writing some very ugly codes to extract the space gradient and larvae path data from the original xml file and it&#8217;s almost done. I&#8217;m now able to sketch with the raw data and have my own first visual impression on the data:</p>
<p><a href="http://leejayxia.com/blog/wp-content/uploads/2008/10/e59bbee78987-1.png" rel="lightbox[245]"><img class="alignnone size-medium wp-image-246" title="full view of experimental space" src="http://leejayxia.com/blog/wp-content/uploads/2008/10/e59bbee78987-1-300x215.png" alt="" width="300" height="215" /></a> <a href="http://leejayxia.com/blog/wp-content/uploads/2008/10/e59bbee78987-2.png" rel="lightbox[245]"><img class="alignnone size-medium wp-image-247" title="just started" src="http://leejayxia.com/blog/wp-content/uploads/2008/10/e59bbee78987-2-300x215.png" alt="" width="300" height="215" /></a> <a href="http://leejayxia.com/blog/wp-content/uploads/2008/10/e59bbee78987-3.png" rel="lightbox[245]"><img class="alignnone size-medium wp-image-248" title="in the middle" src="http://leejayxia.com/blog/wp-content/uploads/2008/10/e59bbee78987-3-300x215.png" alt="" width="300" height="215" /></a></p>
<p>Next steps:</p>
<ul>
<li>Performance!!! current performance is too poor for real user interaction. data optimization is highly required for this case. will cover in the filter and mine phase;</li>
<li>Find out appropriate presentation for data elements as well as GUI elements. All visual elements are subject to change;</li>
<li>Interactions: custom grouping and filtering, capability of exploring into time</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://leejayxia.com/blog/visualizing-smell-acqure-and-parse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PCom Update: multiple serial input</title>
		<link>http://leejayxia.com/blog/multiple-serial-input/</link>
		<comments>http://leejayxia.com/blog/multiple-serial-input/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 06:11:52 +0000</pubDate>
		<dc:creator>L.J</dc:creator>
				<category><![CDATA[Introduction to Physical Computing]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Fall 2008]]></category>
		<category><![CDATA[force sensor]]></category>
		<category><![CDATA[ITP]]></category>
		<category><![CDATA[Physical Computing]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Serial]]></category>
		<category><![CDATA[simulation]]></category>
		<category><![CDATA[Week6]]></category>

		<guid isPermaLink="false">http://leejayxia.com/blog/?p=238</guid>
		<description><![CDATA[I&#8217;ve been mostly working on viz class and pcom mid term over the weekend. One big thing is I once made the eight-buck-deal RF Link work in the studio, but never succeeded in testing again since I went back to the dorm. I used software serial library to utilize digital pins as serial input/output and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been mostly working on viz class and pcom mid term over the weekend. One big thing is I once made the eight-buck-deal RF Link work in the studio, but never succeeded in testing again since I went back to the dorm. I used software serial library to utilize digital pins as serial input/output and leave the original serial port for computer monitoring, but the RL Links still feel like a black box to me. The transmitter side looks working perfectly while I hooked up a USB cable and tried to read the TX stream, however the receiver side keeps getting rubbish data. More efforts are to be invested on this issue!!</p>
<p>Just a quick update on the multi-serial-input, shown as the video below (yes I still love my force sensors):</p>
<p><object width="400" height="302"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1971879&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=1971879&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="302"></embed></object></p>
<p>It&#8217;s pretty simple, just using two serial inputs. But the concept of encoding data and protocol is pretty clear.</p>
<p>Arduino Code:</p>
<div class="codecolorer-container c dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br /></div></td><td><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333;">int</span> leftPin <span style="color: #339933;">=</span> <span style="color: #0000dd;">4</span><span style="color: #339933;">;</span><br />
<span style="color: #993333;">int</span> rightPin <span style="color: #339933;">=</span> <span style="color: #0000dd;">5</span><span style="color: #339933;">;</span><br />
<span style="color: #993333;">int</span> leftValue<span style="color: #339933;">,</span>rightValue<span style="color: #339933;">;</span><br />
<br />
<span style="color: #993333;">void</span> setup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; beginSerial<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">9600</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp;<span style="color: #666666; font-style: italic;">//set up communication back to pc</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #993333;">void</span> loop<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; leftValue <span style="color: #339933;">=</span> analogRead<span style="color: #009900;">&#40;</span>leftPin<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; rightValue <span style="color: #339933;">=</span> analogRead<span style="color: #009900;">&#40;</span>rightPin<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
&nbsp; <span style="color: #666666; font-style: italic;">//if (abs(leftValue - rightValue) &gt; 50)</span><br />
&nbsp; <span style="color: #666666; font-style: italic;">//{</span><br />
&nbsp; &nbsp; Serial.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span>leftValue<span style="color: #339933;">,</span>DEC<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; Serial.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">44</span><span style="color: #339933;">,</span>BYTE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; Serial.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span>rightValue<span style="color: #339933;">,</span>DEC<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; Serial.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">44</span><span style="color: #339933;">,</span>BYTE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; Serial.<span style="color: #202020;">println</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #666666; font-style: italic;">//}</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Processing Code:</p>
<div class="codecolorer-container java dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br /></div></td><td><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">processing.serial.*</span><span style="color: #339933;">;</span><br />
<br />
Serial myPort<span style="color: #339933;">;</span><br />
<span style="color: #003399;">String</span> data<span style="color: #339933;">;</span><br />
<span style="color: #000066; font-weight: bold;">int</span> leftValue <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
<span style="color: #000066; font-weight: bold;">int</span> rightValue <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000066; font-weight: bold;">void</span> setup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; size<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">800</span>, <span style="color: #cc66cc;">600</span>, P3D<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; directionalLight<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">126</span>, <span style="color: #cc66cc;">126</span>, <span style="color: #cc66cc;">126</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; ambientLight<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">102</span>, <span style="color: #cc66cc;">102</span>, <span style="color: #cc66cc;">102</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; noStroke<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; myPort <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Serial<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>, Serial.<span style="color: #006633;">list</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>, <span style="color: #cc66cc;">9600</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; ellipseMode<span style="color: #009900;">&#40;</span>CENTER<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000066; font-weight: bold;">void</span> draw<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; background<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">float</span> leftR <span style="color: #339933;">=</span> map<span style="color: #009900;">&#40;</span>leftValue,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1023</span>,<span style="color: #cc66cc;">0</span>,PI<span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">float</span> rightR <span style="color: #339933;">=</span> map<span style="color: #009900;">&#40;</span>rightValue,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1023</span>,<span style="color: #cc66cc;">0</span>,PI<span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; translate<span style="color: #009900;">&#40;</span>width<span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span>, height<span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <br />
&nbsp; rotateX<span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>PI<span style="color: #339933;">/</span><span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; rotateZ<span style="color: #009900;">&#40;</span>rightR <span style="color: #339933;">-</span> leftR<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; stroke<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">160</span>,<span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; fill<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">150</span>,<span style="color: #cc66cc;">150</span>,<span style="color: #cc66cc;">150</span>,<span style="color: #cc66cc;">90</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; box<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">500</span>,<span style="color: #cc66cc;">10</span>,<span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; translate<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <br />
&nbsp; noStroke<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; fill<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">255</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; translate<span style="color: #009900;">&#40;</span>map<span style="color: #009900;">&#40;</span>rightValue <span style="color: #339933;">-</span> leftValue,<span style="color: #339933;">-</span><span style="color: #cc66cc;">1023</span>,<span style="color: #cc66cc;">1023</span>,<span style="color: #339933;">-</span><span style="color: #cc66cc;">250</span>,<span style="color: #cc66cc;">250</span><span style="color: #009900;">&#41;</span>,<span style="color: #339933;">-</span><span style="color: #cc66cc;">25</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; sphere<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000066; font-weight: bold;">void</span> serialEvent<span style="color: #009900;">&#40;</span>Serial p<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #003399;">String</span> input <span style="color: #339933;">=</span> p.<span style="color: #006633;">readStringUntil</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp;<span style="color: #666666; font-style: italic;">//make sure you return (Ascii 13) at the end of your transmission</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>input <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><br />
&nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> parts <span style="color: #339933;">=</span> input.<span style="color: #006633;">split</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp;<span style="color: #666666; font-style: italic;">//this will only work if you put commas (Ascii 44) between things in your transmission</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>parts.<span style="color: #006633;">length</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//println(&quot;Raw Input: &quot; + input);</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>abs<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#40;</span>parts<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> leftValue<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; leftValue <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#40;</span>parts<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>abs<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#40;</span>parts<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> rightValue<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; rightValue <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#40;</span>parts<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://leejayxia.com/blog/multiple-serial-input/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

