{"id":111,"date":"2019-04-18T19:26:30","date_gmt":"2019-04-19T01:26:30","guid":{"rendered":"http:\/\/www.wolfpack.xyz\/blog\/?p=111"},"modified":"2019-04-18T19:26:38","modified_gmt":"2019-04-19T01:26:38","slug":"max7219-displays","status":"publish","type":"post","link":"http:\/\/www.wolfpack.xyz\/blog\/?p=111","title":{"rendered":"Max7219 Displays"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.espruino.com\/refimages\/MAX7219_front.jpg?resize=304%2C176&#038;ssl=1\" alt=\"\" width=\"304\" height=\"176\" data-recalc-dims=\"1\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.espruino.com\/refimages\/MAX7219_back.jpg?resize=256%2C132&#038;ssl=1\" alt=\"\" width=\"256\" height=\"132\" data-recalc-dims=\"1\" \/><figcaption>The common 8 digit Max7219 module<\/figcaption><\/figure><\/div>\n\n\n\n<p>I&#8217;ve always loved the retro feel seven segment displays give off and I feel they are an awesome fit for the aesthetic of &#8220;Objects in Space&#8221;. Today I was able to overcome a problem that was stumping me for a while&#8230; <strong>How to display 2 dynamic length integer variables on the same display with blank leading digit padding<\/strong>&#8230;. now that&#8217;s a mouthful. I&#8217;m happy to say I did crack it and manage to come up with something that looks good!<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"634\" height=\"357\" src=\"https:\/\/www.youtube.com\/embed\/uLHA0_6DnuE?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation\"><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p>I&#8217;m kind of taking a &#8220;More is More&#8221; approach for building this console. I want new users to be somewhat overwhelmed by all the displays, LEDs, switches, ect. So Id love to have many of these displays on the panel displaying a wealth of info. Not all of which will be immediately useful when playing the game, but in in &#8220;reality&#8221; would be found in a spaceship bridge. I&#8217;m also thinking having an auxiliary panel somewhere displaying the players bank funds on a 7-seg display would be cool&#8230;. somehow making it fit &#8220;plausible lore&#8221; as well.<\/p>\n\n\n\n<p><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-111\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.wolfpack.xyz\/blog\/?p=111&amp;share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-111\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.wolfpack.xyz\/blog\/?p=111&amp;share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve always loved the retro feel seven segment displays give off and I feel they are an awesome fit for the aesthetic of &#8220;Objects in Space&#8221;. Today I was able to overcome a problem that was stumping me for a while&#8230; How to display 2 dynamic length integer variables on the same display with blank [&hellip;]<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-111\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.wolfpack.xyz\/blog\/?p=111&amp;share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-111\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.wolfpack.xyz\/blog\/?p=111&amp;share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[6,7],"tags":[5],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6nSil-1N","jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts\/111"}],"collection":[{"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=111"}],"version-history":[{"count":1,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":112,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions\/112"}],"wp:attachment":[{"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}