{"id":577,"date":"2012-10-24T07:49:34","date_gmt":"2012-10-24T07:49:34","guid":{"rendered":"http:\/\/bitmap2lcd.com\/blog\/?p=577"},"modified":"2014-01-22T10:37:19","modified_gmt":"2014-01-22T10:37:19","slug":"glcd-data-output-settings-in-bitmap2lcd","status":"publish","type":"post","link":"https:\/\/bitmap2lcd.com\/blog\/glcd-data-output-settings-in-bitmap2lcd\/","title":{"rendered":"GLCD Data Output Settings in Bitmap2LCD"},"content":{"rendered":"<p><em>Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems.<\/em><\/p>\n<p><span style=\"color: #ff0000;\">This article is only for\u00a0releases before V2.5<\/span><\/p>\n<p>Let&#8217;s look how to configure the GLCD data output settings\u00a0:<\/p>\n<p>The generated data array file (<em>orange arrow, in the picture below<\/em>) can be configured to meet the syntax requests of your compiler or assembler. There are many possible settings, to make it possible to\u00a0match the tool with most of the compilers of the market.<\/p>\n<p>At first,\u00a0you\u00a0define the table data settings (<em>red arrow<\/em>)<\/p>\n<ul>\n<li>Data Width format. ( 8,16 or 32 bits data)<\/li>\n<li>Binary, Hex or decimal format.<\/li>\n<li>Syntax of Data Byte\/Word\u00a0(make it compatible\u00a0with your favorite compiler, assembler)<\/li>\n<li>Type of file (extension)<\/li>\n<\/ul>\n<p>As next,\u00a0you define the\u00a0header\u00a0syntax (<em>green arrow<\/em>)<\/p>\n<ul>\n<li>Click on the button and\u00a0the\u00a0header script is loaded into the editor. Modify it to meet your requirements.<\/li>\n<li>When ready, quit the header editor\u00a0by clicking\u00a0the same button (<em>green arrow at the right<\/em>)\u00a0or the quit button. (script is auto-saved)<\/li>\n<li>Find more about the header syntax at\u00a0the\u00a0end of this article.<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><a href=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/10\/bitmap2LCD-Configuration-Settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-578 aligncenter\" title=\"bitmap2LCD Configuration Settings\" alt=\"\" src=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/10\/bitmap2LCD-Configuration-Settings.png\" width=\"639\" height=\"398\" srcset=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/10\/bitmap2LCD-Configuration-Settings.png 845w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/10\/bitmap2LCD-Configuration-Settings-300x186.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>As next, you define the way the data arrays\u00a0are arranged\u00a0to correctly fit in the DDRAM of your LCD controller. These\u00a0settings must be compatible\u00a0with the LCD display functions\u00a0in\u00a0the GLCD Library you use in your project (<em>blue arrow<\/em>)<\/p>\n<ul>\n<li>The origin corner X0,Y0<\/li>\n<li>Data direction (The direction\u00a0in which the\u00a0pixels slices are taken\u00a0from the work canvas\u00a0and converted to GLCD data, for example in <strong>slices<\/strong> or in\u00a0full canvas height or full canvas width.\u00a0A <strong>slice<\/strong>\u00a0is 8 pixels in monochrome mode and 2 pixels in 4bpp grayscale mode)<\/li>\n<li>The Endianness (Most Significant Bit is first or last)<\/li>\n<li>Special\u00a0settings<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>More about File Header syntax (<em>green arrow<\/em>)<\/p>\n<p>The script components <strong>[&amp;***]<\/strong> can be included only once and will be replaced by the data or value\u00a0when\u00a0the data array is generated. Not needed script components can be erased.<\/p>\n<p>[&amp;NAME]<\/p>\n<p>The [$NAME] and the image size and position are optional and can be placed optionally anywhere in the header.<\/p>\n<p>[&amp;SIZE]<\/p>\n<p>Same for Size of Data<\/p>\n<p>[&amp;TRUEORG]<\/p>\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<p>[&amp;XPOS]<\/p>\n<p>[&amp;YPOS]<\/p>\n<p>[&amp;WIDTH]<\/p>\n<p>[&amp;HEIGHT]<\/p>\n<p>The corner position on the Work Canvas and the size of the converted\u00a0graphic area can be exported into the file.<\/p>\n<p>There are\u00a0additional\u00a0script components for font generation and data compression.<\/p>\n<p>&nbsp;<\/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%2Fglcd-data-output-settings-in-bitmap2lcd%2F&amp;t=GLCD+Data+Output+Settings+in+Bitmap2LCD+<+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%2Fglcd-data-output-settings-in-bitmap2lcd%2F&amp;text=GLCD+Data+Output+Settings+in+Bitmap2LCD+<+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%2Fglcd-data-output-settings-in-bitmap2lcd%2F&amp;media=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fwp-content%2Fuploads%2F2012%2F10%2Fbitmap2LCD-Configuration-Settings-300x186.png&amp;description=Bitmap2LCD+is+a+tool+for+programming+small+Graphic+LCDs+in+embedded+systems.+This+article+is+only+for%C2%A0releases+before+V2.5+Let%27s+look+how+to+configure+the+GLCD+data+output+settings%C2%A0%3A+The+generated+data+array+file+%28orange+arrow%2C+in+the+picture+below%29%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%2Fglcd-data-output-settings-in-bitmap2lcd%2F&amp;title=GLCD+Data+Output+Settings+in+Bitmap2LCD&amp;source=Bitmap2LCD+Software+Tool+Blog+%3A%3A+about+GLCD+displays+and+Programming&amp;summary=Bitmap2LCD+is+a+tool+for+programming+small+Graphic+LCDs+in+embedded+systems.+This+article+is+only+for%C2%A0releases+before+V2.5+Let%27s+look+how+to+configure+the+GLCD+data+output+settings%C2%A0%3A+The+generated+data+array+file+%28orange+arrow%2C+in+the+picture+below%29%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%2Fglcd-data-output-settings-in-bitmap2lcd%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:+GLCD+Data+Output+Settings+in+Bitmap2LCD&amp;body=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fglcd-data-output-settings-in-bitmap2lcd%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>Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems. This article is only for\u00a0releases before V2.5 Let&#8217;s look how to configure the GLCD data output settings\u00a0: The generated data array file (orange arrow, in the picture below) can be configured to meet the syntax requests of your compiler or assembler. There are [&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,50],"tags":[230,229,35,228,25,236,238,233,237,227,232,235,239,234,231],"class_list":["post-577","post","type-post","status-publish","format-standard","hentry","category-configuration-settings-2","category-convert-a-bitmap-to-glcd","tag-bitmap-to-glcd","tag-bitmap2lcd-settings","tag-bits-per-pixel","tag-c-array-syntax","tag-convert-graphic","tag-convert-image","tag-create-lcd-data","tag-dot-matrix-data","tag-generate-lcd-data","tag-glcd-data-array","tag-hexadecimal-image","tag-lcd-module","tag-lcd-software","tag-monochrome-glcd","tag-pixels-to-hex"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts\/577","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=577"}],"version-history":[{"count":19,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts\/577\/revisions"}],"predecessor-version":[{"id":819,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts\/577\/revisions\/819"}],"wp:attachment":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/media?parent=577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/categories?post=577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/tags?post=577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}