<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>LeafLabs Garden &#187; Topic: pinMode() use in AnalogInOutSerial Sketch</title>
		<link>http://forums.leaflabs.com/topic.php?id=151</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:23:11 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=151" rel="self" type="application/rss+xml" />

		<item>
			<title>bnewbold on "pinMode() use in AnalogInOutSerial Sketch"</title>
			<link>http://forums.leaflabs.com/topic.php?id=151#post-958</link>
			<pubDate>Thu, 02 Sep 2010 15:39:42 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">958@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for the catch, fixed in this commit: &#60;a href=&#34;http://github.com/leaflabs/maple-ide/commit/9aa149bdbe2adfcb2d3fc89844f4902ab95be856&#34; rel=&#34;nofollow&#34;&#62;http://github.com/leaflabs/maple-ide/commit/9aa149bdbe2adfcb2d3fc89844f4902ab95be856&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If I remember correctly, the pins default to INPUT_FLOATING and taking ADC samples &#34;works&#34; but is extremely noisy when the pin mode is not set correctly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "pinMode() use in AnalogInOutSerial Sketch"</title>
			<link>http://forums.leaflabs.com/topic.php?id=151#post-954</link>
			<pubDate>Thu, 02 Sep 2010 09:00:22 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">954@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;September 02, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;In the documentation for &#34;ADC&#34; &#60;a href=&#34;http://leaflabs.com/docs/maple/adc/&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/maple/adc/&#60;/a&#62; it says the pinMode(pin_num, INPUT_ANALOG) &#34;function is usually called from setup() to configure the pin hardware for analog sampling&#34;.&#60;/p&#62;
&#60;p&#62;However, the AnalogInOutSerial example sketch does not include any pinMode() statements.  I think this sketch is a carry over from the Arduino documentation.  If I am correct the Arduino does not require the use the pinMode(pin_num, INPUT_ANALOG) initialization.&#60;/p&#62;
&#60;p&#62;When the Maple is programmed what are the subtle (&#34;hidden&#34;) consequences if pinMode() is not called before analogRead() is used?&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC&#60;/p&#62;
&#60;p&#62;Here is a description of my system:&#60;/p&#62;
&#60;p&#62;Maple board: Rev 3 (summer 2010)&#60;br /&#62;
Maple IDE: 0.6.0&#60;/p&#62;
&#60;p&#62;Processor: Pentium III (1 GHz)&#60;br /&#62;
USB ports: 1.1&#60;/p&#62;
&#60;p&#62;OS: Windows XP Professional (32-bit)&#60;br /&#62;
SP: Service Pack 3&#60;/p&#62;
&#60;p&#62;Java type: JDK and JRE&#60;br /&#62;
Java version: 1.6.0_20 (as reported by the Control Panel)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
