<?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: Is String class in 0.0.9?</title>
		<link>http://forums.leaflabs.com/topic.php?id=775</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:21:49 +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=775" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "Is String class in 0.0.9?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=775#post-4654</link>
			<pubDate>Tue, 17 May 2011 16:01:09 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4654@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;infobomb,&#60;/p&#62;
&#60;p&#62;Sorry to hear you're having more problems.  Thanks for your offer to help!&#60;/p&#62;
&#60;p&#62;The LiquidCrystal library is a port of the Arduino version, so there's a large shared set of code between them.  I fairly recently made some changes which shave time off of LiquidCrystal::pulseEnable() that may be the culprit, although to my (admittedly very limited) knowledge, these are OK according to spec.  More information is available in the pulseEnable() source:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/libmaple/blob/master/libraries/LiquidCrystal/LiquidCrystal.cpp#L300&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/blob/master/libraries/LiquidCrystal/LiquidCrystal.cpp#L300&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The best way I know of to instrument code running on the Maple is with JTAG.  When used in concert with OpenOCD, this buys you the ability to attach arm-none-eabi-gdb to the code running on the Maple.&#60;/p&#62;
&#60;p&#62;There's a HOWTO up on the wiki which contains information on making a JTAG adapter for the Maple (and on OpenOCD, etc.):&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wiki.leaflabs.com/index.php?title=Maple_JTAG_How_To&#34; rel=&#34;nofollow&#34;&#62;http://wiki.leaflabs.com/index.php?title=Maple_JTAG_How_To&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks to a collaboration of forum users, we have a limited number of JTAG adapter kits for sale; if you're interested in one, please email us at &#60;a href=&#34;mailto:info@leaflabs.com&#34;&#62;info@leaflabs.com&#60;/a&#62;.  (We'll be doing larger runs of these in the future).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>infobomb on "Is String class in 0.0.9?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=775#post-4653</link>
			<pubDate>Tue, 17 May 2011 15:45:45 +0000</pubDate>
			<dc:creator>infobomb</dc:creator>
			<guid isPermaLink="false">4653@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I recoded my sketch and built my own (very limited) atoi and eliminated the need for one other String method.  The LCD now works with my Maple... for a while.  At some point (a few minutes of 115,200 baud data, 120 bytes, 64 hz) the LCD display goes nuts.  I'm suspecting something bogus is getting sent to the LCD.&#60;/p&#62;
&#60;p&#62;I then took the non-String code back to my Arduino (Seeeduino 2.2.1) and it compiled in 4k instead of 8k. You folks were right, the String class was big (by AVR standards).  Interestingly, the code works here with no LCD insanity creeping in.  Several 1 hour runs with no faults.  On both Maple and Arduino tests all components except the main boards were the same (LCD, MAX233A, USB to Serial for input data to RX1).  The only possible difference is that I &#34;borrowed&#34; 5vcc from the seeeduino to power the MAX233A and the LCD and shared grounds with the Maple.  I didn't put a scope on it but I sort of doubt this is the problem.&#60;/p&#62;
&#60;p&#62;SO:  Is there a way to instrument the LCD Library on Maple IDE so I can delve a bit deeper into the mystery.  I'd like to figure out what's causing the LCD issues for the community.  I have info from the Arduino site on how to make a contributed library.  I'll try taking the LiquidCrystal LIB for Maple and doing a test version.  If there are any cool tools that help with this please let me know!&#60;/p&#62;
&#60;p&#62;Thanks - I hope to have some info in a few days.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Is String class in 0.0.9?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=775#post-4651</link>
			<pubDate>Tue, 17 May 2011 13:55:56 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4651@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Glad to hear that this wasn't a deal-breaker for you, and again I'm sorry for the mistake.  I've fixed the uploaded 0.0.10beta docs:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://static.leaflabs.com/pub/leaflabs/maple-docs/0.0.10beta/lang/cpp/string.html&#34; rel=&#34;nofollow&#34;&#62;http://static.leaflabs.com/pub/leaflabs/maple-docs/0.0.10beta/lang/cpp/string.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Fix was pushed in c0721a7:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/libmaple/commit/c0721a714484446b0b4a30c057d8b01df14b088f&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/commit/c0721a714484446b0b4a30c057d8b01df14b088f&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>infobomb on "Is String class in 0.0.9?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=775#post-4638</link>
			<pubDate>Mon, 16 May 2011 14:31:54 +0000</pubDate>
			<dc:creator>infobomb</dc:creator>
			<guid isPermaLink="false">4638@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;That's kind of what I thought (on both counts).  I used String out of laziness on the arduino but I did note the bloat.  I'll recode for both versions and save some bytes - no problem.  I'm only doing sub string stuff - no matching.&#60;/p&#62;
&#60;p&#62;The Maple's a nice little board, BTW.  I'd love to have both 5v and 3.3v Vcc on the board someday as the primitive LCDs I want to power won't run on 3.3.&#60;/p&#62;
&#60;p&#62;DMA on a one chip board.  Wow.  I remember my old Apple days when we were so excited to get it on a Mac...  ;-)&#60;/p&#62;
&#60;p&#62;Thanks for the response folks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Is String class in 0.0.9?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=775#post-4635</link>
			<pubDate>Mon, 16 May 2011 12:01:20 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4635@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;infobomb,&#60;/p&#62;
&#60;p&#62;Oops, you're right, those docs are in error.  Sorry for the mistake.  I don't remember how that ended up in there; probably I meant to include String by 0.0.9.  After considering the matter, however, I'm not really sure that the String class is a good idea on a board with such a limited amount of memory, so the plans to include it got scrapped.&#60;/p&#62;
&#60;p&#62;If you watch the Arduino developers mailing list, you may have seen that they've been having tons of trouble getting the semantics right for String; error handling in particular seems like it's been a real nuisance.&#60;/p&#62;
&#60;p&#62;If it's any consolation: since Maple Native has that nice 1 MB SRAM chip, there are plans to include support for dynamic memory allocation in its library support (although the first IDE release will likely not include this).  Users of that board will thus likely be able to just use std::string.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "Is String class in 0.0.9?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=775#post-4630</link>
			<pubDate>Mon, 16 May 2011 10:25:05 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">4630@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;From what I've gathered, the String class is mentioned nowhere in libmaple; arduino compatibility page, or notes. If you look at libmaple, there is no String class file either.&#60;/p&#62;
&#60;p&#62;If you must Arduino's string class, you can use &#60;em&#62;their&#60;/em&#62; string class =].&#60;/p&#62;
&#60;p&#62;P.S. string.h includes the standard cstring functions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>infobomb on "Is String class in 0.0.9?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=775#post-4629</link>
			<pubDate>Mon, 16 May 2011 09:51:58 +0000</pubDate>
			<dc:creator>infobomb</dc:creator>
			<guid isPermaLink="false">4629@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;More data:&#60;/p&#62;
&#60;p&#62;I built a bare sketch with only this (I wasn't sure String was in the core):&#60;/p&#62;
&#60;p&#62;#include &#38;lt;string.h&#38;gt;&#60;/p&#62;
&#60;p&#62;String  test_input = &#34;0012224826351340262441240122631320562191191OAT00090TRE-0061FLP0001020481378139214061421143514503583533633743843951103D2&#34;;&#60;/p&#62;
&#60;p&#62;And got this:&#60;/p&#62;
&#60;p&#62;error: 'String' does not name a type&#60;/p&#62;
&#60;p&#62;UPDATE:  Tried 0.0.10Beta - no change.  &#60;/p&#62;
&#60;p&#62;The docs at &#60;a href=&#34;http://static.leaflabs.com/pub/leaflabs/maple-docs/0.0.10beta/lang/cpp/string.html#lang-string&#34; rel=&#34;nofollow&#34;&#62;http://static.leaflabs.com/pub/leaflabs/maple-docs/0.0.10beta/lang/cpp/string.html#lang-string&#60;/a&#62;  appear incorrect in suggesting that String exists.  No problem - I'll write a wrapper until it works.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>infobomb on "Is String class in 0.0.9?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=775#post-4626</link>
			<pubDate>Sun, 15 May 2011 20:49:43 +0000</pubDate>
			<dc:creator>infobomb</dc:creator>
			<guid isPermaLink="false">4626@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;In the arduino compatibility notes it says String is not implemented.  In the 0.0.9 notes is say it is.  I'm trying to port some code that passes:&#60;/p&#62;
&#60;p&#62;    void bar(String foo) &#60;/p&#62;
&#60;p&#62;as a function arg and it gave me strange errors until I changed void to unsigned int.  Then I get another strange error:&#60;/p&#62;
&#60;p&#62;error: 'String' was not declared in this scope In function 'void setup()':&#60;/p&#62;
&#60;p&#62;My code works fine with arduino 0018.  I'm starting to think String isn't implemented in 0.0.9.&#60;/p&#62;
&#60;p&#62;Any ideas?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
