{"id":2641,"date":"2020-08-04T14:26:49","date_gmt":"2020-08-04T04:26:49","guid":{"rendered":"https:\/\/jandmf.com\/?p=2641"},"modified":"2020-08-04T14:26:51","modified_gmt":"2020-08-04T04:26:51","slug":"a-slightly-bigger-display","status":"publish","type":"post","link":"https:\/\/jandmf.com\/index.php\/2020\/08\/04\/a-slightly-bigger-display\/","title":{"rendered":"A slightly bigger display"},"content":{"rendered":"<div id=\"pl-2641\"  class=\"panel-layout\" ><div id=\"pg-2641-0\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-2641-0-0\"  class=\"panel-grid-cell\" ><div id=\"panel-2641-0-0-0\" class=\"so-panel widget_text panel-first-child panel-last-child\" data-index=\"0\" ><h3 class=\"widget-title\">The Adafruit 128&#215;64 OLED Bonnet for Raspberry Pi<\/h3>\t\t\t<div class=\"textwidget\"><p>So after getting the little display I decided to have a go with the <span class=\"h1\">Adafruit 128&#215;64 OLED Bonnet for Raspberry Pi. After a bit of messing about this is what it looks like in operation<\/span><\/p>\n<figure id=\"attachment_2643\" aria-describedby=\"caption-attachment-2643\" style=\"width: 1024px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2643 size-large\" src=\"https:\/\/jandmf.com\/wp-content\/uploads\/2020\/08\/BIRU-WP-20200804T114648GMT1000-e1596505851872-1024x768.jpg\" alt=\"\" width=\"1024\" height=\"768\" srcset=\"https:\/\/jandmf.com\/wp-content\/uploads\/2020\/08\/BIRU-WP-20200804T114648GMT1000-e1596505851872-1024x768.jpg 1024w, https:\/\/jandmf.com\/wp-content\/uploads\/2020\/08\/BIRU-WP-20200804T114648GMT1000-e1596505851872-300x225.jpg 300w, https:\/\/jandmf.com\/wp-content\/uploads\/2020\/08\/BIRU-WP-20200804T114648GMT1000-e1596505851872-768x576.jpg 768w, https:\/\/jandmf.com\/wp-content\/uploads\/2020\/08\/BIRU-WP-20200804T114648GMT1000-e1596505851872-1200x900.jpg 1200w, https:\/\/jandmf.com\/wp-content\/uploads\/2020\/08\/BIRU-WP-20200804T114648GMT1000-e1596505851872.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption id=\"caption-attachment-2643\" class=\"wp-caption-text\">Adafruit 128&#215;64 OLED Bonnet for Raspberry Pi<\/figcaption><\/figure>\n<p>I&#8217;ve put eight lines of text on it and enabled a few of the buttons \/ joystick. The test is date, time, cpu temp, CPU and memory used percentages, root partition usage, swap usage, uptime and the boot time. The buttons thus far assigned are button 5 for reboot, button 6 for power off, joystick down is Samba restart and joystick up is Apache2 restart. It required a fair bit of messing around as well as learning a bit about GPIO pins and acting on the buttons.<\/p>\n<p>Anyway <a href=\"https:\/\/jandmf.com\/files\/new_moni.py\">here&#8217;s the Python3 script.<\/a> It isn&#8217;t particularly well commented &#8211; the comments were more for my use while I was writing it. And nor is there any error checking. Python3 seems to do a pretty good job of that.<\/p>\n<\/div>\n\t\t<\/div><\/div><\/div><div id=\"pg-2641-1\"  class=\"panel-grid panel-no-style\" ><div id=\"pgc-2641-1-0\"  class=\"panel-grid-cell\" ><div id=\"panel-2641-1-0-0\" class=\"so-panel widget_text panel-first-child panel-last-child\" data-index=\"1\" ><h3 class=\"widget-title\">The next step<\/h3>\t\t\t<div class=\"textwidget\"><p>For my next trick I want to have a play with a <a href=\"https:\/\/core-electronics.com.au\/adafruit-mini-pitft-135x240-color-tft-add-on-for-raspberry-pi.html\" target=\"_blank\" rel=\"noopener\">Adafruit Mini PiTFT &#8211; 135&#215;240 Color TFT Add-on for Raspberry Pi<\/a><span class=\"h1\">. I don&#8217;t know what I&#8217;ll display on it yet but I&#8217;m sure I&#8217;ll think of something.<\/span><\/p>\n<p>I&#8217;m also tossing around the idea of having a play with the <a href=\"https:\/\/core-electronics.com.au\/pitft-plus-320x240-2-8-tft-resistive-touchscreen-pi-2-and-model-a-b.html\" target=\"_blank\" rel=\"noopener\">PiTFT Plus 320&#215;240 2.8 TFT + Resistive Touchscreen<\/a><\/p>\n<p>Because of all this messing around during the COVID-19 restrictions that we are living under here in Victoria, Australia I reckon I may have to get another Pi. Probably a 2GB Pi 4 this time &#8211; I already have a 4GB and a 1GB and I cant see a reason for forking out the extra cash for the 8GB iteration.<\/p>\n<p>Of course another Pi means another SSD to boot from, another case and probably a fan shim. Hmmm. I can see the price of all this creeping well toward unaffordable already.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n\t\t<\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>So after getting the little display I decided to have a go with the Adafruit 128&#215;64 OLED Bonnet for Raspberry Pi. After a bit of messing about this is what it looks like in operation I&#8217;ve put eight lines of text on it and enabled a few of the buttons \/ joystick. The test is &hellip; <a href=\"https:\/\/jandmf.com\/index.php\/2020\/08\/04\/a-slightly-bigger-display\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;A slightly bigger display&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[],"class_list":["post-2641","post","type-post","status-publish","format-standard","hentry","category-pi"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts\/2641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/comments?post=2641"}],"version-history":[{"count":10,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts\/2641\/revisions"}],"predecessor-version":[{"id":2655,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/posts\/2641\/revisions\/2655"}],"wp:attachment":[{"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/media?parent=2641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/categories?post=2641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jandmf.com\/index.php\/wp-json\/wp\/v2\/tags?post=2641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}