{"id":2568,"date":"2020-02-14T20:36:10","date_gmt":"2020-02-14T19:36:10","guid":{"rendered":"https:\/\/einstein.amsterdam\/?page_id=2568"},"modified":"2020-02-15T17:36:21","modified_gmt":"2020-02-15T16:36:21","slug":"1-pi-star-logo","status":"publish","type":"page","link":"https:\/\/einstein.amsterdam\/?page_id=2568","title":{"rendered":"Pi-Star Logo Maker"},"content":{"rendered":"<hr>\n<h1>Make a logo and convert it to cpp code<\/h1>\n<p><strong>1. Make a callsign image <\/strong><br \/>\nMake a callsign image with Paint, any other tool (black\/white) or this online tool <a href=\"https:\/\/einstein.noho.st\/txt2img\/\" onclick=\"popupWindow(this.href)\" target=\"_blank\" rel=\"noopener noreferrer\">txt2img<\/a> (hosted on our server). A new window will open full screen. Make your image and save it. In our example which works nicely, we enter &#8221; Pi-Star &#8221; (don&#8217;t forget the space in front and behind the word) in the text field and activate the bold option. Next save as and download the image.<br \/>\n<script type=\"text\/javascript\">\nfunction popupWindow(url)\n  {\n    window.open(url,\"MyWindow\",\"toolbar=no, menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no\");\n  }\n<\/script><br \/>\nyou can also use this sample image or your own and goto step 2 \ud83d\ude42<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/einstein.amsterdam\/wp-content\/uploads\/pi-star.png\" alt=\"\" width=\"190\" height=\"68\" class=\"alignnone size-full wp-image-2597\" \/><\/p>\n<p><strong>2. Convert your image to cpp code <\/strong><br \/>\nConvert your image to cpp code with this tool <a href=\"https:\/\/www.14core.com\/c-array-generator\/\">https:\/\/www.14core.com\/c-array-generator\/<\/a> or this online tool <a href=\"https:\/\/einstein.noho.st\/img2cpp\/\" onclick=\"popupWindow(this.href)\" target=\"_blank\" rel=\"noopener noreferrer\">img2cpp<\/a> (hosted on our server). A new window will open full screen. Use all the options we point out in the menu. And make cpp output.<br \/>\n<script type=\"text\/javascript\">\nfunction popupWindow(url)\n  {\n    window.open(url,\"MyWindow\",\"toolbar=no, menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no\");\n  }\n<\/script><br \/>\nIn our example it will make<\/p>\n<p>\/\/ &#8216;pi-star&#8217;, 128x16px<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x3f, 0x07, 0x80, 0x00, 0x3c, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x0f, 0xc0, 0x00, 0x00, 0xf0, 0x0c, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x0f, 0xcf, 0x80, 0x00, 0x7e, 0x00, 0x7f, 0xc3, 0xff, 0x0f, 0xc7, 0x80, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x1f, 0x87, 0x80, 0x00, 0x1f, 0xf8, 0x1e, 0x00, 0x07, 0x83, 0xf1, 0x80, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x00, 0x07, 0x87, 0xf8, 0x00, 0x7e, 0x1e, 0x03, 0xff, 0x83, 0xe0, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x00, 0x07, 0x80, 0x00, 0xc0, 0x1e, 0x1e, 0x0f, 0x87, 0x83, 0xe0, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x00, 0x07, 0x80, 0x00, 0xf0, 0x3c, 0x1f, 0x0f, 0x87, 0x83, 0xe0, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00<\/p>\n<p><strong>3. Copy your array<\/strong><br \/>\nCopy your array into OLED.cpp under the section<\/p>\n<p>\/\/Logo MMDVM for Idle Screen<br \/>\nstatic unsigned char logo_glcd_bmp[] =<br \/>\n{<\/p>\n<p>replace the lines up-to the next }; with your logo-code, in our example it would make<\/p>\n<p>\/\/Logo MMDVM for Idle Screen<br \/>\nstatic unsigned char logo_glcd_bmp[] =<br \/>\n{<br \/>\n\/\/ &#8216;pi-star&#8217;, 128x16px<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x3f, 0x07, 0x80, 0x00, 0x3c, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x0f, 0xc0, 0x00, 0x00, 0xf0, 0x0c, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x0f, 0xcf, 0x80, 0x00, 0x7e, 0x00, 0x7f, 0xc3, 0xff, 0x0f, 0xc7, 0x80, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x1f, 0x87, 0x80, 0x00, 0x1f, 0xf8, 0x1e, 0x00, 0x07, 0x83, 0xf1, 0x80, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x00, 0x07, 0x87, 0xf8, 0x00, 0x7e, 0x1e, 0x03, 0xff, 0x83, 0xe0, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x00, 0x07, 0x80, 0x00, 0xc0, 0x1e, 0x1e, 0x0f, 0x87, 0x83, 0xe0, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x3e, 0x00, 0x07, 0x80, 0x00, 0xf0, 0x3c, 0x1f, 0x0f, 0x87, 0x83, 0xe0, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br \/>\n0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00<br \/>\n};<\/p>\n<p><strong>4. Make a new binary<\/strong><br \/>\nMake a new binary with<\/p>\n<p><code>make -f Makefile.Pi.OLED<\/code><\/p>\n<p>If all goes well you will get a new MMDVMHost binary.<\/p>\n<p><a href=\"https:\/\/einstein.amsterdam\/?page_id=2500\">Back<\/a> to Pi-Star Logo, to continue.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Make a logo and convert it to cpp code 1. Make a callsign image Make a callsign image with Paint, any other tool (black\/white) or <a class=\"mh-excerpt-more\" href=\"https:\/\/einstein.amsterdam\/?page_id=2568\" title=\"Pi-Star Logo Maker\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/pages\/2568"}],"collection":[{"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2568"}],"version-history":[{"count":35,"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/pages\/2568\/revisions"}],"predecessor-version":[{"id":2651,"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/pages\/2568\/revisions\/2651"}],"wp:attachment":[{"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}