|
Posted by sarah on July 6, 2008, 8:33 am
Please log in for more thread options
Hello there
I am trying to develop a simple application for Ingenico Pin pad. This
pin pad has a SDK named Ingedev.I use version 6. But I have not been
successful even in developing an application that can show a message
on it's LCD.
Does any one can send me some sample application for show message on
the LCD, working with printers and...?
Maybe explaining the steps will help so I explain the steps:
I created a new U32 simple project. In the MainModule -> Src ->
AppMain.c I have added these part of codes:
#include <unicapt.h>
#include "message.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Application entry point */
uint32 *handle;
char *channelName;
int16 DisplayHandle;
uint32 handle2;
uint32 handle3;
void ApplicationMain(void)
{
int16 ret;
static amgMsg_t msgReceive;
amgSynchroMsgAdd(MSG_POWER_ON);
while(1)
{
ret = amgReceive(AMG_INFINITE, &msgReceive);
if(ret == RET_OK)
{
treatRecMsg(&msgReceive);
}
}
hmiOpen ("DEFAULT",handle);
hmiADDisplayText (handle2,1,0,"Hello World");
hmiclose (handle3);
}
I didn't make any other changes in the other files. I was expected to
see Hello World on its LCD. What I should add to this part of the
codes?
In the SDK there are just these explainations:
int16 hmiOpen (char *channelName, uint32 *handle)
int16 hmiClose (uint32 handle)
int16 hmiADDisplayText (uint32 handle, uint32 line, uint32 column,
char *text)
Have I make mistake in using the pointers?
|