{"id":529,"date":"2014-01-05T23:42:18","date_gmt":"2014-01-06T06:42:18","guid":{"rendered":"http:\/\/zethus.ca\/wp\/?p=529"},"modified":"2016-10-31T16:33:18","modified_gmt":"2016-10-31T23:33:18","slug":"playing-with-spi-lcd-drivers","status":"publish","type":"post","link":"http:\/\/zethus.ca\/wp\/?p=529","title":{"rendered":"Playing with SPI lcd drivers."},"content":{"rendered":"<p>Over the last little while I&#8217;ve been wanting to build a tiny MAME cabinet. I had a Raspi sitting around, and bought a few little LCDs recently on e-bay. So over the last few days I&#8217;ve been getting my Linux chops back and cross compiled up a Linux framebuffer driver for this little spi display. It is 320&#215;200, and uses the ILI9341 in 8-bit spi mode (i.e. is has s D\/C line). After a bunch of digging I came upon the notro&#8217;s drivers (<a title=\"Notro SPI framebuffer drivers\" href=\"https:\/\/github.com\/notro\/fbtft\/wiki\">here<\/a>). After setting up a ubuntu vm on my mac, I got these drivers to cross-compile. I was surprised how slow a linux kernel build is these days.<\/p>\n<p>Here is my raspberry pi in a custom case, running the compiled in framebuffer driver.<br \/>\nI&#8217;ve tried getting advmame running.<\/p>\n<p>With a little box like this, there are a whole bunch of possibilities for things to do with it.<\/p>\n<p>&#8211; <a href=\"http:\/\/spritesmods.com\/?art=rpi_arcade\">Mini Mame<\/a><br \/>\n&#8211; <a href=\"http:\/\/lesbonscomptes.com\/pages\/raspmpd.html\">MPD <\/a>server and client running on the display, with web interface for control<br \/>\n&#8211; <a href=\"http:\/\/amiexp.blogspot.ca\/2013\/01\/respberry-pi-with-shairport-and-usb.html\">Shairport<\/a> server<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_530\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/zethus.ca\/wp\/?attachment_id=530\" rel=\"attachment wp-att-530\"><img aria-describedby=\"caption-attachment-530\" loading=\"lazy\" class=\"size-medium wp-image-530\" src=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2014\/01\/IMG_0974-300x225.jpg\" alt=\"Raspberry Pi w\/SPI LCD\" width=\"300\" height=\"225\" srcset=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2014\/01\/IMG_0974-300x225.jpg 300w, http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2014\/01\/IMG_0974-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-530\" class=\"wp-caption-text\">Raspberry Pi w\/SPI LCD<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_531\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/zethus.ca\/wp\/?attachment_id=531\" rel=\"attachment wp-att-531\"><img aria-describedby=\"caption-attachment-531\" loading=\"lazy\" class=\"size-medium wp-image-531\" src=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2014\/01\/IMG_0975-300x225.jpg\" alt=\"RPi booting\" width=\"300\" height=\"225\" srcset=\"http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2014\/01\/IMG_0975-300x225.jpg 300w, http:\/\/zethus.ca\/wp\/wp-content\/uploads\/2014\/01\/IMG_0975-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-531\" class=\"wp-caption-text\">RPi booting<\/p><\/div>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/CcSllSelTBA?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the last little while I&#8217;ve been wanting to build a tiny MAME cabinet. I had a Raspi sitting around, and bought a few little LCDs recently on e-bay. So over the last few days I&#8217;ve been getting my Linux &hellip; <a href=\"http:\/\/zethus.ca\/wp\/?p=529\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/529"}],"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=529"}],"version-history":[{"count":6,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":733,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/529\/revisions\/733"}],"wp:attachment":[{"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}