<?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: Another Nokia6100 LCD port</title>
		<link>http://forums.leaflabs.com/topic.php?id=653</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:12:55 +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=653" rel="self" type="application/rss+xml" />

		<item>
			<title>snigelen on "Another Nokia6100 LCD port"</title>
			<link>http://forums.leaflabs.com/topic.php?id=653#post-3651</link>
			<pubDate>Thu, 17 Feb 2011 07:05:47 +0000</pubDate>
			<dc:creator>snigelen</dc:creator>
			<guid isPermaLink="false">3651@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;wilsonjc posted som code for the Nokia 6100 display with the Philips chip. But the controller on the Sparkfun &#60;a href=&#34;http://www.sparkfun.com/products/9363&#34;&#62;Color LCD Shield&#60;/a&#62; seems to be Epson S1D15G00. So I made a quick port of this &#60;a href=&#34;http://peterdavenport.blogspot.com/p/lcd-library.html&#34;&#62;&#34;Library&#34;&#60;/a&#62;, (it's not a Arduinoish Library, more like an example sketch).&#60;/p&#62;
&#60;p&#62;The controller (as it's used on the shield) uses 9bit SPI, so I just ported the code by simply doing&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#ifdef BOARD_maple
   // Maple bit numbers and ports
   #define LCD_RES 10    // GPIOA.10 = D8
   #define CS      7     // GPIOB.7  = D9
   #define DIO     7     // GPIOA.7  = D11
   #define SCK     5     // GPIOA.5  = D13
   #define LCD_PORT_CS   GPIOB_BASE
   #define LCD_PORT_SCK  GPIOA_BASE
   #define LCD_PORT_RES  GPIOA_BASE
   #define LCD_PORT_DIO  GPIOA_BASE

   #define sbi(port, bitnum)  ((port)-&#38;gt;BSRR = (1&#38;lt;&#38;lt;(bitnum)))
   #define cbi(port, bitnum)  ((port)-&#38;gt;BRR = (uint16)(1&#38;lt;&#38;lt;(bitnum)))
#else ...&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So it's bit banged directly on the port registers. The serial clock will be about 1.8MHz (a little faster than shiftOut() :-)).&#60;/p&#62;
&#60;p&#62;You can find the ported sketch &#60;a href=&#34;http://idun.homeunix.org/LCD_Library_maple.zip&#34;&#62;here&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Maybe I'll do a real Arduino style library for this shield some day.&#60;br /&#62;
(And I don't only write LCD code ;-)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
