Posted: Mon Apr 01, 2002 8:43 am
Hi
Has anyone got a function or could be bribed to write me one which checks com1 for any characters? I have wired up my keypad and checked it with hyper terminal. I also made a function with LabWindows CVI to determine the ASCII values, but i cant get it to work in Borland, so i am now back to square one.
I have a constant loop which check if there is a character waiting, if there is, i have a function to deal with it, then it continues decoding, if there is not, it just continues decoding the MP3.
e.g.
while (1)
{
var = checkSerial();// function needed
if (var != 0)
{
var == 1 do this...
var == 2 do other...
just handle input if there is any
}
if (Playing == 1)
{do {
status = decoder_play(decoder);
} while (status == XA_SUCCESS);
}
DisplayMenu();
DisplayCursor();
}
Any help would be greatly appreciated.
Feel free to contact me directly if you think you can help.
jiggyjiggylefteye@hotmail.com
Thanks
Has anyone got a function or could be bribed to write me one which checks com1 for any characters? I have wired up my keypad and checked it with hyper terminal. I also made a function with LabWindows CVI to determine the ASCII values, but i cant get it to work in Borland, so i am now back to square one.
I have a constant loop which check if there is a character waiting, if there is, i have a function to deal with it, then it continues decoding, if there is not, it just continues decoding the MP3.
e.g.
while (1)
{
var = checkSerial();// function needed
if (var != 0)
{
var == 1 do this...
var == 2 do other...
just handle input if there is any
}
if (Playing == 1)
{do {
status = decoder_play(decoder);
} while (status == XA_SUCCESS);
}
DisplayMenu();
DisplayCursor();
}
Any help would be greatly appreciated.
Feel free to contact me directly if you think you can help.
jiggyjiggylefteye@hotmail.com
Thanks