Specifications

91
be in 24 bit RGB color. The SLCD5 uses 16 bit color in 565 formatting, but the
BMPload program does the required translation. The BMPload program is
designed to run on Windows XP. The computer that is running the BMPload
program needs to be connected to the SLCD5 board using either the Main or Aux
serial port.
The first screen that appears when the BMPload program is booted allows the
user to use an “Add BMP” button to add BMP files to the list. Once loaded, the
BMP files are indexed by the order in which they are added. This is important
because when using the DISPLAY BITMAP IMAGE command you use the index
number to refer to the specific bitmap you are trying to place. The best way to
add the BMP files to the list is to start all bmp file names with their index number,
for example “01_first_bitmap.bmp”. Then insert all of the .bmp files into one list
file (.lst) which is a standard text file and add this file to the BMPload program.
Once all desired bitmaps have been loaded, you can use either the “Save to File”
button or the “Store into SLCD” button to save the bitmaps. The “Save to File”
button saves all the bitmaps to the SD card (file name must be 8 characters, start
with “slcd” and have the extension “.bin”). The “Store into SLCD” button stores
the images to the SLCD5 flash memory via the serial port. The BMPload
program is only designed to get the .bmp files from the PC connected to the
SLCD5 to either the Flash memory or the SD card on the SLCD5.
Once the .bmp files are loaded onto the SLCD5, they still need to be
implemented into the code that will produce the images on the LCD touch
screen. Table 31 describes several of the commands for the SLCD5 that will be
used during programming in order to place .bmp files to be used for items such
as buttons and hotspots on the LCD screen.
Name
Description
Command
Arguments
Display
Bitmap
Image
Copies
previously
stored bitmap
onto screen at
x y
xi <number>
x y
<number>: Bitmap number
Button
Define -
Momentary
Defines a
momentary
touch button on
the screen
bd <n> <x>
<y> <type>
“text” <dx>
<dy> <bmp0>
<bmp1>
<n>:Button number
<x><y>:Upper left hand corner of
button
<type>: Button type
“text”: Text to display
<dx>/<dy> : x/y dir. text offset
<bmp0>/<bmp1>: Index of bitmap
displayed in unpressed/pressed