<?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: digitalWrite not working after Spi.begin</title>
		<link>http://forums.leaflabs.com/topic.php?id=921</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:25 +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=921" rel="self" type="application/rss+xml" />

		<item>
			<title>josiah47 on "digitalWrite not working after Spi.begin"</title>
			<link>http://forums.leaflabs.com/topic.php?id=921#post-5707</link>
			<pubDate>Fri, 22 Jul 2011 08:53:57 +0000</pubDate>
			<dc:creator>josiah47</dc:creator>
			<guid isPermaLink="false">5707@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Okay that helped.&#60;br /&#62;
Here is a link to the code that i got it working with&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/5Eiwj1t1&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/5Eiwj1t1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Code is just for testing and I have already updated it, maybe once done I will clean it up and post something in the wiki, that is if the wiki hasn't been messed with! lol
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "digitalWrite not working after Spi.begin"</title>
			<link>http://forums.leaflabs.com/topic.php?id=921#post-5699</link>
			<pubDate>Thu, 21 Jul 2011 15:37:49 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">5699@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Try:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;void setup() {
	spi.begin(SPI_18MHZ, MSBFIRST, 0);
	pinMode(31, OUTPUT);
	digitalWrite(31, HIGH);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I know I had issues with SPI1 if I set the CS pinmode before starting the SPI. The spi.begin(...) modifies the gpio, so you want to configure it afterwards -- though this shouldn't matter technically.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>josiah47 on "digitalWrite not working after Spi.begin"</title>
			<link>http://forums.leaflabs.com/topic.php?id=921#post-5698</link>
			<pubDate>Thu, 21 Jul 2011 14:07:33 +0000</pubDate>
			<dc:creator>josiah47</dc:creator>
			<guid isPermaLink="false">5698@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;This does not work, pin 31 does not go on and off,&#60;br /&#62;
HardwareSPI spi(2);&#60;/p&#62;
&#60;p&#62;void setup() {&#60;br /&#62;
    pinMode(31, OUTPUT);&#60;br /&#62;
    spi.begin(SPI_18MHZ, MSBFIRST, 0);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void loop() {&#60;br /&#62;
	digitalWrite(31, LOW);&#60;br /&#62;
	delay(1000);&#60;br /&#62;
	digitalWrite(31, HIGH);&#60;br /&#62;
        delay(1000);&#60;br /&#62;
}&#60;br /&#62;
if you comment out spi.begin line out it does work.&#60;/p&#62;
&#60;p&#62;Is it supposed to work like this? if so how does one turn and and off CS line to start data transmission from SPI device?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
