<?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; Topic: Custom Characters</title>
		<link>http://forum.slashdev.ca/topic/3</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:01 +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/topic/3" rel="self" type="application/rss+xml" />

		<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>

	</channel>
</rss>

