I tried the code below to redefine the character 0 but it doesn't work:
LPT= 0x0378
// set the CGRAM at the address 00
portwriteb(LPT, $40);
portwriteb(LPT+2,E_1 or RS_0);
delay(1);
portwriteb(LPT+2,E_0 or RS_0);
// this is the cycle where the character pattern is passed to the
// display 7 times, one for each row of the character matrix.
// At the end character 0 should display 3 vertical lines
for c:=0 to 7 do
begin
portwriteb(LPT, $15); // <-- bit pattern
portwriteb(LPT+2,E_1 or RS_0);
delay(1);
portwriteb(LPT+2,E_0 or RS_0);
delay(1);
end;
Where's the mistake?
Regards,
Bob
|