{"id":3120,"date":"2021-06-11T12:58:00","date_gmt":"2021-06-11T12:58:00","guid":{"rendered":"https:\/\/bitmap2lcd.com\/blog\/?p=3120"},"modified":"2023-10-11T04:00:06","modified_gmt":"2023-10-11T04:00:06","slug":"header-include-editors-and-scripting-components","status":"publish","type":"post","link":"https:\/\/bitmap2lcd.com\/blog\/header-include-editors-and-scripting-components\/","title":{"rendered":"Header Include Editors and Scripting Components"},"content":{"rendered":"\n<h1 class=\"wp-block-heading has-blue-color has-text-color\">Script Components<\/h1>\n\n\n\n<p>The<strong> script components [&amp;***]<\/strong> can be included only once and will be replaced by the data or value when the data array is generated. Not needed script components can be deleted.<\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;NAME]<\/strong><\/p>\n\n\n\n<p>The [$NAME] and the image size and position are optional and can be placed optionally anywhere in the header.<\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;SIZE]<\/strong><\/p>\n\n\n\n<p>Same for Size of Data<\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;TRUEORG]<\/strong><\/p>\n\n\n\n<p>This is the script component if present in the file, to indicate that you want to have the XPOS and YPOS origins of a reduced dynamic table of constants ( a part of the display you want to change ) given from the X0,Y0 corner you selected in the table translation manager window.<\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;XPOS]<\/strong><\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;YPOS]<\/strong><\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;WIDTH]<\/strong><\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;HEIGHT]<\/strong><\/p>\n\n\n\n<p>The corner position on the Work Canvas and the size of the converted graphic area can be exported into the file.<\/p>\n\n\n\n<p>There are more script components, for the font generation and the data compression. See the above default header script.<\/p>\n\n\n\n<p>\/\/** Example for for Images and Graphics Conversion!<\/p>\n\n\n\n<p>#include &lt;avr\/pgmspace.h&gt;<\/p>\n\n\n\n<p>const uint8_t <strong>[&amp;NAME]<\/strong>[] PROGMEM = {<br><strong>[&amp;TRUEORG]<\/strong><\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;XPOS],<br>[&amp;YPOS],<br>[&amp;WIDTH],<br>[&amp;HEIGHT],<\/strong><\/p>\n\n\n\n<p><br>\/\/** These are the X and Y position<br>\/\/** and the Width and Height of an<br>\/\/** exported graphic (optional)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\/\/** for graphics conversion with <strong>data compression<\/strong><br><strong>[&amp;COMPRESSION]<\/strong><br>const uint8_t<strong> [&amp;CNAME][&amp;CSIZE]<\/strong> PROGMEM = {<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-blue-color has-text-color has-medium-font-size\"><strong>Header Include for Fonts<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0101\"><strong>[&amp;FONT INCLUDE]<\/strong><br><\/p>\n\n\n\n<p class=\"has-dark-gray-color has-text-color\">\/* \/\/ Structured Font Output Include<br>typedef struct {<br>long int code;<br>const tImage *image;<br>} tChar;<br>typedef struct {<br>int length;<br>const tChar *chars;<br>} tFont;<br>*\/<\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><br><strong>[&amp;\/FONT INCLUDE]<\/strong><\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;FONT BITMAPS]<\/strong><\/p>\n\n\n\n<p class=\"has-dark-gray-color has-text-color\"><br>const uint8_t <strong>[&amp;FNAME][&amp;FNUMBEROFCHARS][&amp;FBYTESPERCHAR]<\/strong> PROGMEM = {<\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;FONT DESCRIPTORS]<\/strong><\/p>\n\n\n\n<p class=\"has-dark-gray-color has-text-color\"><br>const uint8_t <strong>[&amp;DNAME]<\/strong>[][2] PROGMEM = {<\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#ff0000\"><strong>[&amp;FONT END]<\/strong><\/p>\n\t<div class=\"quickshare-container\">\r\n\t<ul class=\"quickshare-genericons quickshare-effect-round quickshare-effect-expand quickshare-small\">\r\n\t\t<li class=\"quickshare-share\"><\/li> \r\n\t\t<li><a href=\"https:\/\/facebook.com\/sharer.php?u=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fheader-include-editors-and-scripting-components%2F&amp;t=Header+Include+Editors+and+Scripting+Components+<+Bitmap2LCD+Software+Tool+Blog+%3A%3A+about+GLCD+displays+and+Programming\" target=\"_blank\" title=\"Share on Facebook\"><span class=\"quickshare-facebook\">Facebook<\/span><\/a><\/li>\t\t<li><a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fheader-include-editors-and-scripting-components%2F&amp;text=Header+Include+Editors+and+Scripting+Components+<+Bitmap2LCD+Software+Tool+Blog+%3A%3A+about+GLCD+displays+and+Programming\" target=\"_blank\" title=\"Share on Twitter\"><span class=\"quickshare-twitter\">Twitter<\/span><\/a><\/li>\t\t<li><a href=\"http:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fheader-include-editors-and-scripting-components%2F&amp;media=&amp;description=Script+Components+The+script+components+%5B%26amp%3B%2A%2A%2A%5D+can+be+included+only+once+and+will+be+replaced+by+the+data+or+value+when+the+data+array+is+generated.+Not+needed+script+components+can+be+deleted.+%5B%26amp%3BNAME%5D+The+%5B%24NAME%5D+and+the+image+size%26hellip%3B\" target=\"_blank\" title=\"Share on Pinterest\"><span class=\"quickshare-pinterest\">Pinterest<\/span><\/a><\/li>\t\t<li><a href=\"http:\/\/linkedin.com\/shareArticle?mini=true&amp;url=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fheader-include-editors-and-scripting-components%2F&amp;title=Header+Include+Editors+and+Scripting+Components&amp;source=Bitmap2LCD+Software+Tool+Blog+%3A%3A+about+GLCD+displays+and+Programming&amp;summary=Script+Components+The+script+components+%5B%26amp%3B%2A%2A%2A%5D+can+be+included+only+once+and+will+be+replaced+by+the+data+or+value+when+the+data+array+is+generated.+Not+needed+script+components+can+be+deleted.+%5B%26amp%3BNAME%5D+The+%5B%24NAME%5D+and+the+image+size%26hellip%3B\" title=\"Share on Linkedin\" target=\"_blank\"><span class=\"quickshare-linkedin\">Linkedin<\/span><\/a><\/li>\t\t<li><a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fheader-include-editors-and-scripting-components%2F\" target=\"_blank\" title=\"Share on Google+\"><span class=\"quickshare-googleplus\">Google+<\/span><\/a><\/li>\t\t\t\t\t\t\t\t<li><a href=\"mailto:?subject=Bitmap2LCD+Software+Tool+Blog+%3A%3A+about+GLCD+displays+and+Programming:+Header+Include+Editors+and+Scripting+Components&amp;body=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fheader-include-editors-and-scripting-components%2F\" target=\"_blank\" title=\"Share via Email\"><span class=\"quickshare-email\">Email<\/span><\/a><\/li>\t<\/ul>\r\n\t<\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>Script Components The script components [&amp;***] can be included only once and will be replaced by the data or value when the data array is generated. Not needed script components can be deleted. [&amp;NAME] The [$NAME] and the image size and position are optional and can be placed optionally anywhere in the header. [&amp;SIZE] Same [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[443],"tags":[282,818,817,819,820],"class_list":["post-3120","post","type-post","status-publish","format-standard","hentry","category-configuration-settings-2","tag-configuration-settings","tag-header-include","tag-script-components","tag-script-variables","tag-820"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts\/3120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/comments?post=3120"}],"version-history":[{"count":8,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts\/3120\/revisions"}],"predecessor-version":[{"id":3277,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts\/3120\/revisions\/3277"}],"wp:attachment":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/media?parent=3120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/categories?post=3120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/tags?post=3120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}