<?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>Slashdev Support Forum &#187; Forum: Arduino LCD Library - Recent Posts</title>
		<link>http://forum.slashdev.ca/forum/1</link>
		<description>A place to ask questions about projects and posts on the Slashdev blog.</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Feb 2012 23:55:19 +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://forum.slashdev.ca/search.php</link>
		</textInput>
		<atom:link href="http://forum.slashdev.ca/rss/forum/1" rel="self" type="application/rss+xml" />

		<item>
			<title>socaldt on "Scrolling text"</title>
			<link>http://forum.slashdev.ca/topic/38#post-97</link>
			<pubDate>Sat, 17 Sep 2011 22:27:33 +0000</pubDate>
			<dc:creator>socaldt</dc:creator>
			<guid isPermaLink="false">97@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;#include &#38;lt;Lcd.h&#38;gt;&#60;br /&#62;
#include &#38;lt;ShiftOut.h&#38;gt;&#60;br /&#62;
int i = 0;&#60;br /&#62;
char msg[] = &#34;Happy Birthday Joanna Woo!&#34;;&#60;/p&#62;
&#60;p&#62;ShiftOut sOut(8, 12, 11, 1);&#60;br /&#62;
Lcd lcd = Lcd(16, FUNCTION_4BIT &#124; FUNCTION_1LINE &#124; FUNCTION_5x11, &#38;amp;sOut);&#60;/p&#62;
&#60;p&#62;void setup()&#60;br /&#62;
{&#60;br /&#62;
  lcd.set_ctrl_pins(CTRLPINS(1,2,3)); // RS-&#38;gt;1, RW-&#38;gt;2, E-&#38;gt;3&#60;br /&#62;
  lcd.set_data_pins(_4PINS(4,5,6,7)); // D4-&#38;gt;4, D5-&#38;gt;5, D6-&#38;gt;6, D7-&#38;gt;7&#60;/p&#62;
&#60;p&#62;  lcd.setup();&#60;br /&#62;
  //lcd.display(DISPLAY_ON &#124; DISPLAY_NOCURSOR &#124; DISPLAY_NOBLINK);&#60;br /&#62;
  //lcd.entry_mode(ENTRY_CURSOR_DEC &#124; ENTRY_SHIFT);&#60;br /&#62;
  lcd.entry_mode(ENTRY_SHIFT);&#60;br /&#62;
  //lcd.shift(SHIFT_SCREEN &#124; SHIFT_LEFT);&#60;br /&#62;
  //lcd.shift(SHIFT_LEFT);&#60;/p&#62;
&#60;p&#62;  lcd.clear();&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void loop()&#60;br /&#62;
{&#60;br /&#62;
    lcd.move_to(17,1);       // Start from right most position&#60;br /&#62;
    i=0;&#60;br /&#62;
    while (msg[i]!=''){&#60;br /&#62;
      lcd.print(msg[i++]);&#60;br /&#62;
      delay(300);            // If I don't have this delay, the delay scrolls really fast&#60;br /&#62;
    }&#60;br /&#62;
    delay(1000);&#60;br /&#62;
    lcd.clear(); // Clear LCD&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;The code works, but like I have described, the transition while scrolling is very illegible.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Scrolling text"</title>
			<link>http://forum.slashdev.ca/topic/38#post-96</link>
			<pubDate>Sat, 17 Sep 2011 14:56:53 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">96@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;Can you post your code so I can have a look?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>socaldt on "Scrolling text"</title>
			<link>http://forum.slashdev.ca/topic/38#post-95</link>
			<pubDate>Sat, 17 Sep 2011 07:42:52 +0000</pubDate>
			<dc:creator>socaldt</dc:creator>
			<guid isPermaLink="false">95@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Hey Jiggak,&#60;/p&#62;
&#60;p&#62;I know you have stop updating your library, but hopefully you still check this forum.&#60;br /&#62;
I found your library and it works for me.&#60;br /&#62;
However, I tried to scroll my text but no luck.&#60;br /&#62;
It scrolls but it appears pixelated.&#60;br /&#62;
If I do not use any delays, the the message would just flash by the LCD.&#60;br /&#62;
It looks like it is not fast enough. I can see the old character before it gets update with the new one.&#60;/p&#62;
&#60;p&#62;Has this happened before? I tried it on both of my LCD but it is the same.&#60;/p&#62;
&#60;p&#62;I used lcd.entry_mode(ENTRY_SHIFT); and tried to display it using lcd.print(msg);. I also tried for-looping it, but neither mode can display the message without distorting. &#60;/p&#62;
&#60;p&#62;Any suggestions would be appreciated.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;David
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "arduino 0018 and keywords.txt"</title>
			<link>http://forum.slashdev.ca/topic/5#post-14</link>
			<pubDate>Tue, 15 Jun 2010 20:08:36 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">14@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;As far as I know, the keywords.txt file is only to provide syntax highlighting in the arduino editor and isn't required (I could be wrong though).&#60;/p&#62;
&#60;p&#62;I just tried arduino 0018 for Linux and my library is recognized just fine. Note: a few versions back, the preferred location for user supplied libraries changed in the arduino IDE. On linux, the location is ~/sketchbook/libraries/. I'm not sure where the sketchbook directory is located on Windows.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>maujabur on "arduino 0018 and keywords.txt"</title>
			<link>http://forum.slashdev.ca/topic/5#post-13</link>
			<pubDate>Tue, 15 Jun 2010 13:19:24 +0000</pubDate>
			<dc:creator>maujabur</dc:creator>
			<guid isPermaLink="false">13@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I've tried to use your library with arduino 0018 on a PC but it seems to be missing a file named keywords.txt. This way it is not regocnized as a library&#60;br /&#62;
Am I doing something wrong?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "Custom Characters"</title>
			<link>http://forum.slashdev.ca/topic/3#post-5</link>
			<pubDate>Tue, 16 Feb 2010 11:16:44 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">5@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;Custom characters are defined using an array of 8 bytes.  Each byte can be thought of as a row of pixels.  Since each bytes is 8 bits, you end up with a grid of 8x8 pixels.  Here is a snippet of code from the animate sample:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// x x x 1 1 1 1 1
// x x x 1 0 0 0 0
// x x x 1 0 0 0 0
// x x x 1 0 0 0 0
// x x x 1 0 0 0 0
// x x x 1 0 0 0 0
// x x x 1 1 1 1 1
// x x x 0 0 0 0 0
uint8_t left[] = { 0x1F, 0x10, 0x10, 0x10, 0x10, 0x10, 0x1F, 0x00 };&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;All 1's will be black pixels, all 0's will be white.  Note: these LCD's actually use 5x8 pixels for characters so the first 3 bits in each byte are ignored when defining characters (marked as x's above).&#60;/p&#62;
&#60;p&#62;Lets take the first row for example.  Pull up your calculator and switch to binary mode.  Enter 00011111 and convert to hexadecimal.  You should get 0x1F.&#60;/p&#62;
&#60;p&#62;Now, using the library you do the following to use the custom character.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// define character in ram at index 0
lcd.define_char(0, left);

// print character from cgram at index 0
lcd.print((char)0);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I hope this helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>evil_md on "Custom Characters"</title>
			<link>http://forum.slashdev.ca/topic/3#post-4</link>
			<pubDate>Tue, 09 Feb 2010 18:00:21 +0000</pubDate>
			<dc:creator>evil_md</dc:creator>
			<guid isPermaLink="false">4@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;I'm completely new to the world of arduino, but I've been running your library and its been working great for me. However I'm not completely clear on the custom character aspect, so was hoping you would be able to give me a short example outlining the definition of a character, and then the proceedure for printing the character to the LCD.&#60;/p&#62;
&#60;p&#62;Cheers for any help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jiggak on "There&#039;s nothing here?"</title>
			<link>http://forum.slashdev.ca/topic/2#post-3</link>
			<pubDate>Sun, 31 Jan 2010 23:24:25 +0000</pubDate>
			<dc:creator>jiggak</dc:creator>
			<guid isPermaLink="false">3@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;First let me apologize for not replying sooner.  I just setup this forum and have not yet figured out how to get emails sent to me when someone posts!&#60;/p&#62;
&#60;p&#62;I think your problem is in the Lcd constructor, try this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#include &#38;lt;Lcd.h&#38;gt;

// LCD module is 16 columns wide, 4 pin mode, 2 lines
Lcd lcd = Lcd(16, FUNCTION_4BIT &#124; FUNCTION_2LINE);

void setup()
{
   // for the sake of demonstration change pin assignment
   lcd.set_ctrl_pins(CTRLPINS(1,2,3)); // RS-&#38;gt;1, RW-&#38;gt;2, E-&#38;gt;3
   lcd.set_data_pins(_4PINS(4,5,6,7)); // D4-&#38;gt;4, D5-&#38;gt;5, D6-&#38;gt;6, D7-&#38;gt;7
   lcd.setup(); // setup arduino and initialize LCD
}

void loop()
{
   lcd.home();
   lcd.print(&#38;quot;Line 1&#38;quot;);
   lcd.move_to(1, 2);
   lcd.print(&#38;quot;Line 2&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>jkittle99 on "There&#039;s nothing here?"</title>
			<link>http://forum.slashdev.ca/topic/2#post-2</link>
			<pubDate>Thu, 07 Jan 2010 23:15:37 +0000</pubDate>
			<dc:creator>jkittle99</dc:creator>
			<guid isPermaLink="false">2@http://forum.slashdev.ca/</guid>
			<description>&#60;p&#62;Seriously?  &#60;/p&#62;
&#60;p&#62;Ok so let me be the first, then.  I'm using Arduino 17 on a mac.  The library works fine.&#60;/p&#62;
&#60;p&#62;I've wired up a 2x16 Winstar WH1602B display (it has an RGB backlight - mega cool) and I'm running in 4 bit mode.   Hello world works fine on line 1, but nothing goes to line 2.   Why is &#34;move_to&#34; not highlighted?  &#60;/p&#62;
&#60;p&#62;My complete code:&#60;/p&#62;
&#60;p&#62;/*&#60;br /&#62;
 * Simple hello world program in 4 pin mode.&#60;br /&#62;
 */&#60;br /&#62;
#include &#38;lt;Lcd.h&#38;gt;&#60;/p&#62;
&#60;p&#62;// LCD module is 16 columns wide, use 4 pin mode&#60;br /&#62;
Lcd lcd = Lcd(16, FUNCTION_4BIT);&#60;/p&#62;
&#60;p&#62;char msg[] = &#34;Hello, World!&#34;;&#60;/p&#62;
&#60;p&#62;void setup()&#60;br /&#62;
{&#60;br /&#62;
  // for the sake of demonstration change pin assignment&#60;br /&#62;
  lcd.set_ctrl_pins(CTRLPINS(1,2,3)); // RS-&#38;gt;1, RW-&#38;gt;2, E-&#38;gt;3&#60;br /&#62;
  lcd.set_data_pins(_4PINS(4,5,6,7)); // D4-&#38;gt;4, D5-&#38;gt;5, D6-&#38;gt;6, D7-&#38;gt;7&#60;/p&#62;
&#60;p&#62;  lcd.setup();  // setup arduino and initialize LCD&#60;br /&#62;
  lcd.move_to(1,2);&#60;br /&#62;
  lcd.print(&#34;Line 2&#34;);&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;void loop()&#60;br /&#62;
{&#60;br /&#62;
  lcd.home();     // return cursor to home possition&#60;br /&#62;
  lcd.print(msg); // print the ever so familiar message&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

