<?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: SPI Documentation</title>
		<link>http://forums.leaflabs.com/topic.php?id=46</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:14:59 +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=46" rel="self" type="application/rss+xml" />

		<item>
			<title>poslathian on "SPI Documentation"</title>
			<link>http://forums.leaflabs.com/topic.php?id=46#post-218</link>
			<pubDate>Tue, 08 Jun 2010 10:21:12 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">218@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;shouldnt toggling chip select be part of the spi.send()?&#60;/p&#62;
&#60;p&#62;also, star, could you give more info on the type errors? was that from the ide?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stars on "SPI Documentation"</title>
			<link>http://forums.leaflabs.com/topic.php?id=46#post-211</link>
			<pubDate>Sun, 06 Jun 2010 19:43:47 +0000</pubDate>
			<dc:creator>stars</dc:creator>
			<guid isPermaLink="false">211@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yep, this compiles &#38;amp; uploads fine.&#60;/p&#62;
&#60;p&#62;I was getting some errors that said something about uint8 and uint32 being unrecognized types, that disappeared after I include libmaple.  This does not seem to cause those errors.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perry on "SPI Documentation"</title>
			<link>http://forums.leaflabs.com/topic.php?id=46#post-207</link>
			<pubDate>Sat, 05 Jun 2010 20:34:44 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">207@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;yo star,&#60;/p&#62;
&#60;p&#62;The documentation needs to get cleaned up, you shouldn't need to include anything. Can you try this sketch and see if the SPI works for you?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#define CS      10

byte buf[] = &#38;quot;Hello world!&#38;quot;;

HardwareSPI spi1(1);

void setup() {
   /* Set up chip select as output  */
   pinMode(CS, OUTPUT);

   /* CS is usually active low, so initialize it high  */
   digitalWrite(CS, HIGH);

   /* Initialize SPI   */
   spi1.begin(SPI_4_5MHZ, LSBFIRST, 0);
}

void loop() {
   /* Send message  */
   digitalWrite(CS, LOW);
   spi1.send(buf, sizeof buf);
   digitalWrite(CS,HIGH);
   delay(1000);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know if this doesn't work for you.&#60;/p&#62;
&#60;p&#62;BTW, we'll add this to the documentation, but there's also another form of the HardwareSPI constructor that sets up the SPI at the following default values:&#60;/p&#62;
&#60;p&#62;speed: 1.125 MHZ&#60;br /&#62;
endianness: MSB&#60;br /&#62;
SPI Mode: 0&#60;/p&#62;
&#60;p&#62;You can call it just by doing&#60;br /&#62;
spi1.begin()
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stars on "SPI Documentation"</title>
			<link>http://forums.leaflabs.com/topic.php?id=46#post-204</link>
			<pubDate>Fri, 04 Jun 2010 22:15:37 +0000</pubDate>
			<dc:creator>stars</dc:creator>
			<guid isPermaLink="false">204@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi ho!&#60;/p&#62;
&#60;p&#62;Looks like libmaple.h needs to be included to do SPI stuff -- perhaps either HardwareSPI.h should require it, or the documentation at &#60;a href=&#34;http://leaflabs.com/docs/spi&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/spi&#60;/a&#62; could use a comment?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
