<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Updated Arduino LCD Library</title>
	<atom:link href="http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/</link>
	<description>Hardware, software, and just general tinkering</description>
	<lastBuildDate>Tue, 02 Apr 2013 07:02:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
	<item>
		<title>By: Neil</title>
		<link>http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/comment-page-1/#comment-803</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Sat, 13 Sep 2008 20:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/#comment-803</guid>
		<description>Here is an example of what I have to do to get it working properly. If any of the delays are removed, I get jumbled characters after a little while.

&lt;pre lang=&quot;java&quot;&gt;
#include 

Lcd lcd = Lcd(16, FUNCTION_4BIT &#124; FUNCTION_2LINE);

char mightybig[]= &quot;Be Awesome!&quot;;

void setup()
{
  lcd.set_ctrl_pins(CTRLPINS(1,2,3));
  lcd.set_data_pins(_4PINS(4,5,6,7));
  
  lcd.setup();
}

void loop()
{
  lcd.home();
  delay(2);
  lcd.print(mightybig);
  delay(300);
  lcd.clear();
  delay(1);
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here is an example of what I have to do to get it working properly. If any of the delays are removed, I get jumbled characters after a little while.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="java" style="font-family:monospace;">#include 
&nbsp;
Lcd lcd <span style="color: #339933;">=</span> Lcd<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">16</span>, FUNCTION_4BIT <span style="color: #339933;">|</span> FUNCTION_2LINE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">char</span> mightybig<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Be Awesome!&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">void</span> setup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  lcd.<span style="color: #006633;">set_ctrl_pins</span><span style="color: #009900;">&#40;</span>CTRLPINS<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #006633;">set_data_pins</span><span style="color: #009900;">&#40;</span>_4PINS<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span>,<span style="color: #cc66cc;">5</span>,<span style="color: #cc66cc;">6</span>,<span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  lcd.<span style="color: #006633;">setup</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">void</span> loop<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  lcd.<span style="color: #006633;">home</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  delay<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #006633;">print</span><span style="color: #009900;">&#40;</span>mightybig<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  delay<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #006633;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  delay<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/comment-page-1/#comment-799</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Wed, 10 Sep 2008 14:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/#comment-799</guid>
		<description>Thanks!

Just so you know, the module that I am using is this one: http://www.nkcelectronics.com/16x2-lcd-module-while-characters-blue-backli162.html

I set the RW pin to 2, and I am using it in 4-bit mode.</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
<p>Just so you know, the module that I am using is this one: <a href="http://www.nkcelectronics.com/16x2-lcd-module-while-characters-blue-backli162.html" rel="nofollow">http://www.nkcelectronics.com/16&#215;2-lcd-module-while-characters-blue-backli162.html</a></p>
<p>I set the RW pin to 2, and I am using it in 4-bit mode.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jiGGaK</title>
		<link>http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/comment-page-1/#comment-798</link>
		<dc:creator>jiGGaK</dc:creator>
		<pubDate>Wed, 10 Sep 2008 13:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/#comment-798</guid>
		<description>No you don&#039;t need to manually check the busy flag... this should be done automatically.

The fact that it works after adding the 2-3 millisecond delay tells me that the busy flag checking isn&#039;t working correctly.  Tonight I&#039;ll try another LCD module I have kicking around to see if I can replicate the problem.

However if you&#039;re feeling adventurous you could have a look at Lcd.cpp file... there is a function there called check_bf() which I suspect is the culprit.</description>
		<content:encoded><![CDATA[<p>No you don&#8217;t need to manually check the busy flag&#8230; this should be done automatically.</p>
<p>The fact that it works after adding the 2-3 millisecond delay tells me that the busy flag checking isn&#8217;t working correctly.  Tonight I&#8217;ll try another LCD module I have kicking around to see if I can replicate the problem.</p>
<p>However if you&#8217;re feeling adventurous you could have a look at Lcd.cpp file&#8230; there is a function there called check_bf() which I suspect is the culprit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/comment-page-1/#comment-797</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Wed, 10 Sep 2008 03:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.slashdev.ca/2008/03/09/updated-arduino-lcd-library/#comment-797</guid>
		<description>I have been working with your library, but have been getting some odd results.

First of all, nothing works correctly unless I put delays after every call to the LCD. A 2-3 milli delay is all it takes. (A 1 milli delay doesn&#039;t work.) Do I need to tell it to check the RW pin?</description>
		<content:encoded><![CDATA[<p>I have been working with your library, but have been getting some odd results.</p>
<p>First of all, nothing works correctly unless I put delays after every call to the LCD. A 2-3 milli delay is all it takes. (A 1 milli delay doesn&#8217;t work.) Do I need to tell it to check the RW pin?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
