Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems and a programmable text processing tool.
Getting Started > Basic Settings
- In the Output+Settings Main menu, choose one of the the monochrome, grayscale or color depth formats (green frame and arrow)
- Choose one of the the byte / word output widths : 8, 16 or 32 bit or Intel Hex file output in case of data generated inside the text editor (and text file) or the Binary File Output (output generated in the Hex editor) (blue arrow)
- Also Select the endianness, if the most significant bit is left or right in the data output. (red arrow)
- Define the Work Canvas Size corresponding to the Dot Matrix Size of your Graphic LCD
- If the required size is not listed in the Menu ( Width x Height ) use the Define Custom Size item. (purple arrow)
Note : In case of a monochrome GLCD for example, the height or the width might be a multiple of 8 ! It depends of the GLCD : Read the Data Sheet of the GLCD controller and check the structure and data direction of the pixels in the DDRAM
- Open the Configuration Settings Panel (orange arrow)
- Define the Data Syntax Parameters and Data output File Extension (red arrow)
- Define the data direction of the pixels in the Ram of your LCD controller (blue arrow)
- Change the Output File Header syntax (green arrow)
- The Output File Header (Blue arrow) is a text file that is optionally copied to the top of the Text Editor when a data array is generated.
- Edit the Header, then save and Quit the Header Editor (purple arrow)
Note : the words with the [&xxxxx] syntax are optional script components that are replaced by values by the software. See details at the end of this article
- Check Data Array Syntax and Format in the Text Editor
- Set a few pixels (orange) with drawing tool (blue) inside the Work Canvas to check the pixels in the Data output
- Data of the 8 black pixels (orange) generated according to the selected data direction (red) This example is in monochrome mode (8 pixels per byte)
The script components [&***] 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.
The [$NAME] and the image size and position are optional and can be placed optionally anywhere in the header.
Same for Size of Data
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.
The corner position on the Work Canvas and the size of the converted graphic area can be exported into the file.
There are more script components for font generation and data compression.