<?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: Does pulseIn() work?</title>
		<link>http://forums.leaflabs.com/topic.php?id=1316</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:23:09 +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=1316" rel="self" type="application/rss+xml" />

		<item>
			<title>crenn on "Does pulseIn() work?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1316#post-8125</link>
			<pubDate>Wed, 08 Feb 2012 06:26:00 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">8125@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;It is possible to read in PWM signals a few different ways. The simplest way is to use external interrupts. If you want to use input capture in the timers, than the microcontroller manual is the way to go, although there is a mode in the timers that uses Channels 1 and 2 of the timer and means that the period and 'high time' as simple as reading a register.&#60;/p&#62;
&#60;p&#62;I've done this before to decode a ORed signal from 6 channels of an RC receiver. This is the code I used for that: &#60;a href=&#34;http://www.crennsmind.com/Code/Maple/RCTXRX/RCTXRX.txt&#34; rel=&#34;nofollow&#34;&#62;http://www.crennsmind.com/Code/Maple/RCTXRX/RCTXRX.txt&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And if you need it, here is the EXTI code for individual pins: &#60;a href=&#34;http://www.crennsmind.com/Code/Maple/RCTXRX/RCTXRX_EXTI.txt&#34; rel=&#34;nofollow&#34;&#62;http://www.crennsmind.com/Code/Maple/RCTXRX/RCTXRX_EXTI.txt&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Does pulseIn() work?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1316#post-8035</link>
			<pubDate>Thu, 02 Feb 2012 17:20:15 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">8035@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello-&#60;/p&#62;
&#60;p&#62;According to the &#34;Maple Language Reference&#34; page (checked Feb 2012):&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://leaflabs.com/docs/language.html&#34;&#62;http://leaflabs.com/docs/language.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;pulseIn() is described as TODO.&#60;/p&#62;
&#60;p&#62;If you make any progress developing the code please contribute it to the project!&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/profile.php?id=843&#34;&#62;Stephen from NYC&#60;/a&#62; (full disclosure: I am not a member of the LeafLabs staff)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>drinkdhmo on "Does pulseIn() work?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1316#post-8034</link>
			<pubDate>Thu, 02 Feb 2012 16:24:40 +0000</pubDate>
			<dc:creator>drinkdhmo</dc:creator>
			<guid isPermaLink="false">8034@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I found an entry in the documentation for a function called pulseIn(). From the description there, it seems this is the function that will fulfill my needs to read a servo PWM signal from an RC receiver. However, when I try to compile, it fails with the following error:&#60;/p&#62;
&#60;p&#62;error: 'pulsein' was not declared in this scope&#60;/p&#62;
&#60;p&#62;Here is a snippet from my code:&#60;/p&#62;
&#60;p&#62;pinMode(ELEVATOR_PIN, INPUT);&#60;br /&#62;
elevator = pulseIn(ELEVATOR_PIN, HIGH);&#60;/p&#62;
&#60;p&#62;Is there a library I need to #include? Is the function not yet implemented?&#60;/p&#62;
&#60;p&#62;Note: I am using the command line toolchain.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
