[./en.html]
[./news.html]
[./download.html]
[./paging.html]
[./paint.html]
[./info.html]
[./tables.html]
[./screenshot.html]
[mailto:info@bitmap2LCD.com]
[./links.html]
[http://bitmap2lcd.vosforums.com]
[Web Creator] [LMSOFT]
Design and programming tool for monographic Small LCD displays



  
< Tables of constants >
Bitmap2LCD encodes tables of constants for example in header files (*.h) for the C compiler in the following format after including a copy of a scripted text file which can be modified in the application : 

A default.TXT file example :

#include <avr/pgmspace.h>

const prog_uint8_t [&NAME][] = {
[&WIDTH],
[&HEIGHT],
[&XPOS],
[&YPOS],


Example of a table of constants for a C compiler :

/* Table generated with bitmap2LCD */
/* 21.03.2008 02:56:26 */                  -- Date/Time of encoding stamp

#include <avr/pgmspace.h>                  -- File Header, here for AVR GCC
                                           
const prog_uint8_t  picDemo [] = {         -- [$Name]
 128 /*width */,                           -- [$WIDTH] of bitmap
 128 /* height */,                         -- [$HEIGHT] of bitmap
 0 /* pos X */                             -- [$XPOS] from top left corner
 0 /* pos Y */,                            -- [$YPOS] from top left corner

 0x00     /*  ________  */,                -- First data and comment
 0x00     /*  ________  */,                ( Data format according to selected
 0x07     /*  _____###  */,                 paging scheme and orientations )
 0x08     /*  ____#___  */,
 0x7E     /*  _######_  */,
 0x1A     /*  ___##_#_  */,
 0x16     /*  ___#_##_  */,
 0x0F     /*  ____####  */,
 
 ...n bytes                                

 0x10     /*  ___#____  */,
 0xE0     /*  ###_____  */,
 0x00     /*  ________  */,
 0x00     /*  ________  */
};                                          -- End of the table
/******************/
/* 2048 Bytes */                            -- Byte counter comment
/*  End of LCD Pattern  */


Other output formats ?

An extended table encoding format configuration panel supports tables formats for C, PASCAL, BASIC or Assembler files.

-> The optional constant line prefix ( here for example data. and the choice of 1 , 2 4 or 8 bytes per line

data. 0x0F,0x97,0x16,0xE0 

-> hexadecimal format 0xdata or dataH   0x0F .. 0FH
-> the binay format dataB  or 0bdata       01100110b .. 0b01100110

Hexadecimal,Binary or Decimal with optional prefix and suffix  [   ]+Decimal+[   ]

-> No separator between constants or a <,>

-> End of line char selection <none> <;> or< ,>

-> Assembler or C language comment markers /*abc*/ or <;>

-> Table file ext type <.asm> <.h> <.bas> or <.lib>


Near any assembler or compiler should then "eat" your code without postprocessing...

Remember, the table of constants should be compatible with your own C or assembler function and with the paging sheme system of your specific module embedded LCD controller.
Finding out the right orientation and endianness can lead to a few unsuccessful trials.