www.4dsystems.com.au
µ
V
G
A
-PICASO-
MD1
19
6.1.7
D
isplay User Bitmapped Character
(
D
)
Serial Syntax :
cmd, group, numb, x
(msb:lsb),
y
(msb:lsb),
colour
4DGL Syntax :
(refer to 4DGL programmers manual)
cmd :
44
hex
, D
ascii
group :
selects the appropriate bitmap format
00
hex selects the 8x8 bitmap format
01
hex selects the 16x16 bitmap format
02
hex selects the 32x32 bitmap format
numb :
bitmap character number to add to memory:
0 to 63 (
00
h to
3F
h), 64 characters of 8x8 format when group =
00
hex
0 to 15 (
00
h to
0F
h), 16 characters of 16x16 format when group =
01
hex
0 to 7 (
00
h to
07
h), 8 characters of 32x32 format when group =
02
hex
x :
horizontal display position of the character. 2 bytes
y :
vertical display position of the character. 2 bytes
colour:
bitmap colour value. 1 byte
Description :
This command displays the previously defined user bitmapped
character at location
(x, y)
on the screen. User defined bitmaps allow drawing &
displaying unlimited graphic patterns quickly & effectively.
Example 1:
44
hex
, 01
hex
, 00
hex
, 00
hex
, 00
hex
, 00
hex
, 07
hex
Display 8x8 bitmap character number 1 at x = 0, y = 0, colour = red
Example 2:
44
hex
, 01
hex
, 00
hex
, 08
hex
, 00
hex
, 00
hex
, 38
hex
Display 8x8 bitmap character number 1 at x = 8, y = 0, colour = green
Example 3:
44
hex
, 01
hex
, 00
hex
, 10
hex
, 00
hex
, 00
hex
, C0
hex
Display 8x8 bitmap character number 1 at x = 16, y = 0, colour = blue
Example 4:
44
hex
, 01
hex
, 03
hex
, 00
hex
, 10
hex
, 00
hex
, 20
hex
, FF
hex
Display 16x16 bitmap character number 3 at x = 16, y = 32, colour = white