{"id":2211,"date":"2020-07-22T11:06:38","date_gmt":"2020-07-22T09:06:38","guid":{"rendered":"https:\/\/www.sciencetronics.com\/greenphotons\/?p=2211"},"modified":"2025-06-16T18:37:45","modified_gmt":"2025-06-16T16:37:45","slug":"nicely-rendered-7-segment-numbers","status":"publish","type":"post","link":"https:\/\/www.sciencetronics.com\/greenphotons\/?p=2211","title":{"rendered":"Nicely rendered 7-segment numbers"},"content":{"rendered":"<p>User cbm80amiga has uploaded a nice library to render 7-segment numbers on graphical displays &#8211; especially for Arduinos. But the code can as well be used without any Arduino in the proximity, just a slight change in the library made it an universal C++ object.<\/p>\n<p>It had the ambition to follow up with further details, but never made it. So here is the quick-and-dirty code example: <a href=\"http:\/\/sciencetronics.com\/download\/20200722_m328_oled_cpp.zip\">http:\/\/sciencetronics.com\/download\/20200722_m328_oled_cpp.zip<\/a><\/p>\n<p>Here it runs on an ATmega328 and an OLED-display (with SSD1306 controller):<\/p>\n<div style=\"width: 640px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-2211-1\" width=\"640\" height=\"360\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2020\/07\/20200722_oled.mp4?_=1\" \/><a href=\"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2020\/07\/20200722_oled.mp4\">https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2020\/07\/20200722_oled.mp4<\/a><\/video><\/div>\n<p><a href=\"https:\/\/github.com\/cbm80amiga\/DigiFont\">https:\/\/github.com\/cbm80amiga\/DigiFont<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>User cbm80amiga has uploaded a nice library to render 7-segment numbers on graphical displays &#8211; especially for Arduinos. But the code can as well be used without any Arduino in the proximity, just a slight change in the library made it an universal C++ object. It had the ambition to follow up with further details, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2209,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[46,22,11],"tags":[],"class_list":["post-2211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-avr","category-computers_en","category-electronics_en","entry","has-media"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2020\/07\/vlcsnap-2020-07-22-10h56m43s962.jpg","jetpack_shortlink":"https:\/\/wp.me\/p48grL-zF","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts\/2211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2211"}],"version-history":[{"count":5,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts\/2211\/revisions"}],"predecessor-version":[{"id":2311,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts\/2211\/revisions\/2311"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/media\/2209"}],"wp:attachment":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}