<?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: Arduino style tone()</title>
		<link>http://forums.leaflabs.com/topic.php?id=715</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:26:30 +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=715" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "Arduino style tone()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=715#post-4211</link>
			<pubDate>Thu, 07 Apr 2011 12:07:33 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">4211@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mbolivar - Thanks for the detailed answer. Very helpful.&#60;br /&#62;
I'm very pleased it is nice and low cost :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Arduino style tone()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=715#post-4201</link>
			<pubDate>Thu, 07 Apr 2011 10:40:08 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4201@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;gbulmer,&#60;/p&#62;
&#60;p&#62;They live in Flash when they are used.  We call GCC with -fdata-sections -ffunction-sections, and call the linker with --gc-sections, so unless those arrays are used (directly or indirectly) by functions you call, the linker should be able to optimize them out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Arduino style tone()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=715#post-4189</link>
			<pubDate>Wed, 06 Apr 2011 18:28:38 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">4189@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mbolivar - that is a very helpful page, thanks.&#60;/p&#62;
&#60;p&#62;I have a small concern about the space consumed by the supporting tables.&#60;br /&#62;
Should I assume it is very cheap, or I don't &#34;pay&#34; (in space) if I don't use them?&#60;br /&#62;
Do they live in Flash if I do use them?&#60;/p&#62;
&#60;p&#62;(full disclosure: I am not a member of the LeafLabs staff)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Arduino style tone()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=715#post-4187</link>
			<pubDate>Wed, 06 Apr 2011 18:10:51 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4187@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;gbulmer,&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
mbolivar - presumably the processor frequency is factored out to a 'well known' constant label so that code can use a libmaple exported value rather than wiring in 72000000L?&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Yes, the constant CYCLES_PER_MICROSECOND can be used for this purpose; see e.g.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/libmaple/blob/refactor/wirish/boards/maple.h#L38&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/blob/refactor/wirish/boards/maple.h#L38&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Edit:  These sorts of values are documented under the &#34;board-specific values&#34; page, which will be included with the regular HTML docs under leaflabs.com/docs.  Here is that page as it stands in the current refactor tree:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/libmaple/blob/refactor/docs/source/lang/api/board-values.rst&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/blob/refactor/docs/source/lang/api/board-values.rst&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fadis on "Arduino style tone()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=715#post-4168</link>
			<pubDate>Wed, 06 Apr 2011 04:24:22 +0000</pubDate>
			<dc:creator>Fadis</dc:creator>
			<guid isPermaLink="false">4168@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#38;gt; &#60;a href=&#34;https://github.com/leaflabs/libmaple/blob/refactor/libmaple/timer.h&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/blob/refactor/libmaple/timer.h&#60;/a&#62;&#60;br /&#62;
The new libmaple looks interesting!&#60;br /&#62;
I'm busy these 2 days, but I'll try to write a patch for the development code after that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Arduino style tone()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=715#post-4164</link>
			<pubDate>Tue, 05 Apr 2011 20:48:31 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">4164@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mbolivar - presumably the processor frequency is factored out to a 'well known' constant label so that code can use a libmaple exported value rather than wiring in 72000000L?&#60;/p&#62;
&#60;p&#62;(It would be preferable for the value to be a visible value, rather than simply a global name, so that things like (float)MAPLE_FREQUENCY get done at compile time)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Arduino style tone()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=715#post-4145</link>
			<pubDate>Mon, 04 Apr 2011 16:16:57 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4145@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Fadis,&#60;/p&#62;
&#60;p&#62;Thanks for the patch!  Unfortunately, it won't apply to the current development libmaple development code (which is the &#34;refactor&#34; github branch).  Much has changed in libmaple since the last release, and the low-level timer API you are using no longer exists.&#60;/p&#62;
&#60;p&#62;For now, preliminary information on how libmaple is being restructured is available here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://static.leaflabs.com/mbolivar/libmaple_design/index.html&#34; rel=&#34;nofollow&#34;&#62;http://static.leaflabs.com/mbolivar/libmaple_design/index.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The old file timers.h became the new timer.h; the new version has been made public, and is available here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/libmaple/blob/refactor/libmaple/timer.h&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/blob/refactor/libmaple/timer.h&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I am trying to finish the work going on in the refactor branch by the end of the week; we are doing it in order to provide you and the growing number of other community contributors with a stable API to work against.  The new libmaple interfaces are not expected to change for the foreseeable future.&#60;/p&#62;
&#60;p&#62;We would love to see this patch redone in terms of the new timer API.  Thanks again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fadis on "Arduino style tone()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=715#post-4122</link>
			<pubDate>Mon, 04 Apr 2011 00:56:37 +0000</pubDate>
			<dc:creator>Fadis</dc:creator>
			<guid isPermaLink="false">4122@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello.&#60;br /&#62;
I made a patch to add Arduino style tone() and notone() functions for MapleIDE 0.0.9.&#60;br /&#62;
Now the Maple can BEEP using hardware PWM.&#60;/p&#62;
&#60;p&#62;patch:&#60;br /&#62;
&#60;a href=&#34;http://ideone.com/45dy7&#34; rel=&#34;nofollow&#34;&#62;http://ideone.com/45dy7&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;demo:&#60;br /&#62;
&#60;a href=&#34;http://youtu.be/MjRLknXoCDc&#34; rel=&#34;nofollow&#34;&#62;http://youtu.be/MjRLknXoCDc&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Since tone(pin, frequency, duration) looks pretty complex to implement, it is not supported yet.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
