Hey guys,
I use for some time LCD Smartie with success on a HD44780 compatible LCD display. I saw there's a display driver for this kind of displays and I looked up some doc about but I couldn't get too much. Can anyone give me some light what means 3rd parameter (startparam) of DISPLAYDLL_Init function? I tried all kind of combinations but I couldn't make it work, some examples would be great. The display is connected via LPT. Thanks!
Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
DISPLAYDLL_Init
Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351
-
- Plugin Author
- Posts: 1604
- Joined: February 13th, 2005, 7:38 pm
- Location: Athens - Greece
- Contact:
Re: DISPLAYDLL_Init
Does this help? http://lcdsmartie.sourceforge.net/HDSetup.html
-
- Posts: 2
- Joined: December 22nd, 2012, 3:37 pm
Re: DISPLAYDLL_Init
Not really. Let me try to explain this better. I try to write a little program using HD44780.dll but for some reason I could not get a successfuly call of DISPLAYDLL_Init function. Somewhere I found how is defined this function:
First two parameters are bytes that describe the size that LCD Smartie believes the display to be. I have a 2x16 display so I used these values size_x = 2 and size_y = 16.
Third parameter are the startup parameters as a null terminated string. Here is where I think might be my problem. Using LCD Smartie, for this parameter I set just LPT1 and works pretty well so I use same string in my call.
Fourth parameter is a pointer to a boolean that the DLL can use to pass back success or failure of DLL startup.
All my tries end with a false value in boolean variable passed to this function. My guess is maybe I pass something wrong
as third parameter and this is the reason why this call fail but I'm not sure. Anyone have any idea?
Code: Select all
DLL_EXPORT(char *) DISPLAYDLL_Init(LCDS_BYTE size_x,LCDS_BYTE size_y,char *startup_parameters,LCDS_BOOL *ok)
Third parameter are the startup parameters as a null terminated string. Here is where I think might be my problem. Using LCD Smartie, for this parameter I set just LPT1 and works pretty well so I use same string in my call.
Fourth parameter is a pointer to a boolean that the DLL can use to pass back success or failure of DLL startup.
All my tries end with a false value in boolean variable passed to this function. My guess is maybe I pass something wrong
as third parameter and this is the reason why this call fail but I'm not sure. Anyone have any idea?