{"id":287,"date":"2012-01-03T22:13:49","date_gmt":"2012-01-04T05:13:49","guid":{"rendered":"http:\/\/zethus.ca\/wp\/?p=287"},"modified":"2012-01-03T22:14:22","modified_gmt":"2012-01-04T05:14:22","slug":"yet-another-nokia-6100-controller","status":"publish","type":"post","link":"http:\/\/zethus.ca\/wp\/?p=287","title":{"rendered":"Yet another Nokia 6100 controller"},"content":{"rendered":"<p>Our lastest batch of 100 lcd boards has the Epson &#8220;Type B&#8221; controller. That is, it doesnt work quite right with the three bytes per two pixel mode. It needs to be set up in the two bytes per pixel mode. I.e.<\/p>\n<pre><span style=\"color: #0000ff;\">WriteCommand(lctCmd, DATCTL); \/\/ Data Control<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">WriteCommand(lctData, 0x01); \/\/ normal orientation; scan across cols, then rows<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">\/\/\tWriteCommand(lctData, 0x02); \/\/ reverse... bottom up<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">WriteCommand(lctData, 0x00); \/\/ RGB arrangement (RGB all rows\/cols)<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">if (m_epson_typeb){<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">WriteCommand(lctData, 0x04); \/\/ 16 bpp<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">} else {<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">WriteCommand(lctData, 0x02); \/\/ 12 bpp display<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">}<\/span><\/pre>\n<p>When loading pictures you can still use the 12bpp, but it fails when drawing lines of a single pixel width.<\/p>\n<p>So now I have support for three controller types.<a href=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/01\/photo.jpg\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-288\" title=\"Epson Type B\" src=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/01\/photo-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/01\/photo-300x225.jpg 300w, http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/01\/photo.jpg 320w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<pre>Yay, I guess.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Our lastest batch of 100 lcd boards has the Epson &#8220;Type B&#8221; controller. That is, it doesnt work quite right with the three bytes per two pixel mode. It needs to be set up in the two bytes per pixel &hellip; <a href=\"http:\/\/zethus.ca\/wp\/?p=287\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,13],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/287"}],"collection":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=287"}],"version-history":[{"count":3,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":291,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/287\/revisions\/291"}],"wp:attachment":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}