Hello !
Is it possible to display the Greek character set using the existing mikroPascal LCD library ? I tried to display characters above Code=128 and no greek letters appeared. Thanks in advance !
Greek characters on LCD
The HD44780 type character LCD allows 8 user defined characters. Not enough for an alphabet. There may be some custom LCDs that use Greek instead of the Japanese characters that the HD44780 usually have. With a GLCD, you can create your own fonts, though the process is tedious.
If you know what you're doing, you're not learning anything.
Japanese characters are from $A0 to $DF
Some Greek characters are from $E0 to $FF
128 to 160 are not defined
Some Greek characters are from $E0 to $FF
128 to 160 are not defined
Code: Select all
program LCD_demo;
var i : word;
begin
// LCD_Config(portb, 1, 2,2,3,4,5,6);
Lcd_Init(PORTB); // initialize LCD connected to portb
lcd_cmd( LCD_CLEAR); // send command to LCD "clear display"
lcd_cmd( LCD_CURSOR_OFF); // send command cursor off
for i := 161 to 177 do
lcd_chr(1,i-160,i); // 16 caracters on first row
for i := 178 to 194 do
lcd_chr(2,i-177,i); // 16 caracters on second row
end.
Last edited by anton on 31 May 2005 21:10, edited 1 time in total.
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
Here is a datasheet by EPE magazine with a character look-up table
http://www.epemag.wimborne.co.uk/lcd1.pdf
http://www.epemag.wimborne.co.uk/lcd2.pdf
http://www.epemag.wimborne.co.uk/lcd1.pdf
http://www.epemag.wimborne.co.uk/lcd2.pdf
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)