<?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: Why can&#039;t I print a statement in the Setup()</title>
		<link>http://forums.leaflabs.com/topic.php?id=1322</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:20:53 +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=1322" rel="self" type="application/rss+xml" />

		<item>
			<title>lucky13 on "Why can&#039;t I print a statement in the Setup()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1322#post-8108</link>
			<pubDate>Tue, 07 Feb 2012 16:08:18 +0000</pubDate>
			<dc:creator>lucky13</dc:creator>
			<guid isPermaLink="false">8108@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;In arduino, when you open a serial window it causes a reset to the uC so thats why you can see a message in the setup().In maple thats not happening..&#60;br /&#62;
Also its not necessary to put SerialUSB.begin();&#60;br /&#62;
Try this code and press the button to see the hello world&#60;/p&#62;
&#60;p&#62;void setup()&#60;br /&#62;
{&#60;br /&#62;
   waitForButtonPress(0);&#60;/p&#62;
&#60;p&#62;SerialUSB.println(&#34;hello world&#34;);&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;void loop(){&#60;/p&#62;
&#60;p&#62;}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bubulindo on "Why can&#039;t I print a statement in the Setup()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1322#post-8107</link>
			<pubDate>Tue, 07 Feb 2012 02:19:28 +0000</pubDate>
			<dc:creator>bubulindo</dc:creator>
			<guid isPermaLink="false">8107@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Have you tried: &#60;/p&#62;
&#60;p&#62;#include &#38;lt;Wire.h&#38;gt;&#60;/p&#62;
&#60;p&#62;void setup()&#60;br /&#62;
{&#60;/p&#62;
&#60;p&#62;delay(2000);&#60;br /&#62;
//SerialUSB.begin();&#60;br /&#62;
SerialUSB.println(&#34;hello world&#34;);&#60;br /&#62;
Wire.begin();&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;void loop(){&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;I noticed that the processor is faster than I am opening the serial port window. So I put a few seconds to make sure I receive everything.&#60;br /&#62;
That being said, this USB comm is no the most reliable thing in the world.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Cruz on "Why can&#039;t I print a statement in the Setup()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1322#post-8106</link>
			<pubDate>Mon, 06 Feb 2012 22:03:52 +0000</pubDate>
			<dc:creator>Cruz</dc:creator>
			<guid isPermaLink="false">8106@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;thanks for your response. &#60;/p&#62;
&#60;p&#62;I have the following but nothing:&#60;/p&#62;
&#60;p&#62;#include &#38;lt;Wire.h&#38;gt;&#60;/p&#62;
&#60;p&#62;void setup()&#60;br /&#62;
{&#60;br /&#62;
  SerialUSB.begin();&#60;br /&#62;
  SerialUSB.println(&#34;hello world&#34;);&#60;br /&#62;
  Wire.begin();  &#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;void loop(){&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;I have tried multiple arrangements and still i get no output on the serial monitor.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Why can&#039;t I print a statement in the Setup()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1322#post-8099</link>
			<pubDate>Mon, 06 Feb 2012 18:56:29 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">8099@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Probably you print the message before the initialization of the serial or USB interface you want use.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Cruz on "Why can&#039;t I print a statement in the Setup()"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1322#post-8098</link>
			<pubDate>Mon, 06 Feb 2012 18:35:00 +0000</pubDate>
			<dc:creator>Cruz</dc:creator>
			<guid isPermaLink="false">8098@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Is there a way to get around this issue? I can't print a statement in setup(). I don't want to have to do it in loop(). &#60;/p&#62;
&#60;p&#62;Any help please?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
