<?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: How to read &#34;reserved pins&#34; on the Maple?</title>
		<link>http://forums.leaflabs.com/topic.php?id=78</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:19:37 +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=78" rel="self" type="application/rss+xml" />

		<item>
			<title>bnewbold on "How to read &#34;reserved pins&#34; on the Maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=78#post-439</link>
			<pubDate>Thu, 01 Jul 2010 15:58:55 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">439@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;We usually use a multimeter to test this sort of thing... I've never tried to use BOOT1 as GPIO and I couldn't get it to read state changes when I just tried. Next step would be to look at the schematic and see how that pin is pulled up/down. &#60;/p&#62;
&#60;p&#62;There are now &#34;secret labels&#34;; the low level way to access pins by their port and number (in this case trying C9 which is header pin 38 which is the GPIO for BUT) would be:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
void setup() {&#60;br /&#62;
  pinMode(13,OUTPUT);&#60;br /&#62;
  gpio_set_mode(GPIOC_BASE, 9, GPIO_MODE_INPUT_FLOATING);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void loop() {&#60;br /&#62;
  digitalWrite(13,gpio_read_bit(GPIOC_BASE,9));&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;You can find more functions in libmaple/gpio.h and libmaple/gpio.c. These functions are not &#34;fool proof&#34; or documented and you can definitely do naughty things with them... but they can be useful for getting fast read/write access by cutting out the digitalRead/digitalWrite pin mapping lookups and function call overhead.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leaflabsandy on "How to read &#34;reserved pins&#34; on the Maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=78#post-429</link>
			<pubDate>Wed, 30 Jun 2010 20:53:32 +0000</pubDate>
			<dc:creator>leaflabsandy</dc:creator>
			<guid isPermaLink="false">429@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I need to read a &#34;reserve pin&#34; like the&#60;br /&#62;
PB2 Boot1 tac swich input - to check if it&#60;br /&#62;
is sticky or not working.&#60;/p&#62;
&#60;p&#62;What are the &#34;top secret&#34; labels for these&#60;br /&#62;
pins?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
