Keypad App_Note

Started by novice055 March 23, 2006
Hi,

Appreciate if anyone could kindly advise the followings in Keypad 
App_Note provided by NetMedia;

The primary purpose for "Call OpenSerialPort(1, 19200)" and "Call
PutB
(KeypadValue)". In addition, both subroutine are not called in the 
program itself.

Thanks for all input.
	
Any kind help? --- In b...@yahoogroups.com, "novice055" wrote: > > Hi, > > Appreciate if anyone could kindly advise the followings in Keypad > App_Note provided by NetMedia; > > The primary purpose for "Call OpenSerialPort(1, 19200)" and "Call PutB > (KeypadValue)". In addition, both subroutine are not called in the > program itself. > > Thanks for all input. > Yahoo! Groups Links
> ... "Call OpenSerialPort(1, 19200)" and "Call PutB (KeypadValue)"... These are support routines to demonstrate the keypad function by displaying the data that results at each keypress. They are not required to use the keypad, only to show what that particular example code does. These are routines in file Serialport.bas. You'll find that file with the other Examples files. File Keypad.bxp, the project file, lists the files necessary for the Keypad demo. In the Basic-X IDE, if you Open Project Keypad.bxp, both files Keypad.bas and Serialport.bas should load and the demo should then compile and run when you press F5. Tom Yahoo! Groups Links
Hi, The call to the subroutine "OpenSerialPort" establishes the communication parameters for the serial port to your PC. The call to the subroutine "PutB" outputs a Byte type to the serial port. (in this case the "KeypadValue".) The call to the subroutine "NewLine" outputs a to the serial port. The example in the Application note program "keypad.bas" doesn't tell you that the program "SerialPort.bas" is also needed. That is where the Subs "OpenSerialPort", "PutB" and "NewLine" are. (An example of an incomplete example") If you open the BX-24 editor and "open project", find the "keypad.bxp" file, this loads the additional module "SerialPort" automatically. If you open the BX-24 editor and enter just the "keypad.bas" code, you will have to manually add the module "SerialPort.bas" so that it is in the project. It would have been nice if the example would have had a simple comment line like: ' This programs uses subroutines found in "SerialPort.bas". Best Regards, Eric ----- Original Message ----- From: novice055 To: b...@yahoogroups.com Sent: Wednesday, March 29, 2006 5:31 AM Subject: [BasicX] Re: Keypad App_Note Any kind help? --- In b...@yahoogroups.com, "novice055" wrote: > > Hi, > > Appreciate if anyone could kindly advise the followings in Keypad > App_Note provided by NetMedia; > > The primary purpose for "Call OpenSerialPort(1, 19200)" and "Call PutB > (KeypadValue)". In addition, both subroutine are not called in the > program itself. > > Thanks for all input. > ------ YAHOO! GROUPS LINKS a.. ------ Yahoo! Groups Links