Subroutine Question
Hi, I have worked with the Basic Stamp for a few years now and have recently started to work with the SX chip utilizing SX/B.· The·program that I have been working on (attached) utilizes a 12-bit A/D (MAX 187) to read a analog voltage and display the scaled result on a 16x2 LCD in 4-bit Mode.· I do have this program operating, however, I would like to make some improvements.· In particular I have trouble making two subroutines work by first setting them up in the Subroutine Declarations.
It seems that I am only sending 1 byte to the sub, but when try to complie it I get
"Invalid Number of Parameters".· The program will operate if I use "gosub" prior to these subs.· Any help on the subject would be appreciated.
It seems that I am only sending 1 byte to the sub, but when try to complie it I get
"Invalid Number of Parameters".· The program will operate if I use "gosub" prior to these subs.· Any help on the subject would be appreciated.
bak
![](/plugins/FileUpload/images/file.png)
9K
Comments
· The help file is in the process of being updated. I/O pins should be defined with PIN.
· Such as:
· ··LED···· PIN RA.0 OUTPUT
··· Switch PIN RA.1 INPUT PULLUP
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Educate your children to self-control, to the habit of holding passion and prejudice and evil tendencies subject to an upright and reasoning will, and you have done much to abolish misery from their future and crimes from society"
Benjamin Franklin
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·