Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

DISPLAYDLL_Init

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
Andreik
Posts: 2
Joined: December 22nd, 2012, 3:37 pm

DISPLAYDLL_Init

Post by Andreik »

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!
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Re: DISPLAYDLL_Init

Post by limbo »

Andreik
Posts: 2
Joined: December 22nd, 2012, 3:37 pm

Re: DISPLAYDLL_Init

Post by Andreik »

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:

Code: Select all

DLL_EXPORT(char *) DISPLAYDLL_Init(LCDS_BYTE size_x,LCDS_BYTE size_y,char *startup_parameters,LCDS_BOOL *ok)
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?
Post Reply