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

		<item>
			<title>bnewbold on "Implementing Libraries"</title>
			<link>http://forums.leaflabs.com/topic.php?id=53#post-253</link>
			<pubDate>Wed, 16 Jun 2010 01:39:26 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">253@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi starbug!&#60;/p&#62;
&#60;p&#62;We kept the arduino 0018 library system: if you add them to a &#34;library&#34; directory in your sketchbook directory they should pop up in the Examples and be import-able the same way as with Arduino. &#60;/p&#62;
&#60;p&#62;However, the &#34;meat&#34; of the porting process for most libraries is rewriting the bundled C code that is more platform specific. &#60;/p&#62;
&#60;p&#62;One simple issue you'll probably run into right off the bat (I did when testing with the PID library) is that you'll have to change any include statements referencing &#34;&#60;code&#62;wiring.h&#60;/code&#62;&#34; to &#34;&#60;code&#62;wirish.h&#60;/code&#62;&#34; because we renamed that in libmaple. Otherwise you'll get a compiler error like:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/home/bnewbold/code/sketches/libraries/PID_Beta6/PID_Beta6.cpp:2: fatal error: wiring.h: No such file or directory&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This was an unexpected side effect; if it becomes an issue we might auto-fix this compilation error, rename our files, or something similar. We wanted to distinguish our &#34;wirish&#34; implementation of the Arduino language because it's not 100% identical to the regular AVR Arduino implementation.&#60;/p&#62;
&#60;p&#62;Another potential bummer is that libmaple is still under development and any C code depending on its API might break; the dust should settle once we finish porting to maple native and do the 0.1.0 stable release. Exposed wirish functions (like digitalWrite) are much less likely to change. &#60;/p&#62;
&#60;p&#62;I intend to update the &#34;porting libraries&#34; part of the documentation with more tips after 0.1.0 and I get a chance to port a few more myself; let me know if you have tips for future porters, and thanks for taking a whack at the LCD library!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>starbug on "Implementing Libraries"</title>
			<link>http://forums.leaflabs.com/topic.php?id=53#post-248</link>
			<pubDate>Tue, 15 Jun 2010 13:13:24 +0000</pubDate>
			<dc:creator>starbug</dc:creator>
			<guid isPermaLink="false">248@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Can anyone tell me how to implement the lcd library in IDE 0.0.5. Must i create a new directory like in the Arduino IDE environment or what else ?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
