<?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: Wire.cpp librery for Maple Mini</title>
		<link>http://forums.leaflabs.com/topic.php?id=10002</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:19:20 +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=10002" rel="self" type="application/rss+xml" />

		<item>
			<title>ala42 on "Wire.cpp librery for Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10002#post-21838</link>
			<pubDate>Thu, 03 Jan 2013 13:24:31 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">21838@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;See &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=1588#post-10312&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=1588#post-10312&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mario on "Wire.cpp librery for Maple Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10002#post-21825</link>
			<pubDate>Wed, 02 Jan 2013 10:05:59 +0000</pubDate>
			<dc:creator>mario</dc:creator>
			<guid isPermaLink="false">21825@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello:&#60;br /&#62;
I have a problem with the library wire.h and board Maple Mini. When I try to read multiples registers, only I can read ok the first register. When the function Wire.recive() reads the other registers, after the first register, the function gives the value of the first register.&#60;br /&#62;
With board Arduino Uno and your library Wire.h this problem doesn't happend.&#60;/p&#62;
&#60;p&#62;The code I use is this:&#60;/p&#62;
&#60;p&#62;    Wire.beginTransmission(REG_GYRO);&#60;br /&#62;
    Wire.send(REG_GYRO_X); //Register Address GYRO_XOUT_H&#60;br /&#62;
    Wire.endTransmission();&#60;/p&#62;
&#60;p&#62;    // New read the 6 data bytes&#60;/p&#62;
&#60;p&#62;    Wire.beginTransmission(GYRO);&#60;br /&#62;
    Wire.requestFrom(GYRO,6); // Read 6 bytes&#60;br /&#62;
    i = 0;&#60;br /&#62;
    while(Wire.available())&#60;br /&#62;
    {&#60;br /&#62;
        buffer[i] = Wire.receive();&#60;br /&#62;
        i++;&#60;br /&#62;
    }&#60;br /&#62;
    Wire.endTransmission();&#60;/p&#62;
&#60;p&#62;    //Combine bytes into integers&#60;br /&#62;
    // Gyro format is MSB first&#60;br /&#62;
    gyro_x = buffer[0] &#38;lt;&#38;lt; 8 &#124; buffer[1];&#60;br /&#62;
    gyro_y = buffer[2] &#38;lt;&#38;lt; 8 &#124; buffer[3];&#60;br /&#62;
    gyro_z = buffer[4] &#38;lt;&#38;lt; 8 &#124; buffer[5];&#60;/p&#62;
&#60;p&#62;To read the registers correctly, I have read registers independently, increasing the cycle time.&#60;/p&#62;
&#60;p&#62;is it possible the library has and error?&#60;/p&#62;
&#60;p&#62;HELP ME PLIS!!!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
