Shop OBEX P1 Docs P2 Docs Learn Events
Subroutine Question — Parallax Forums

Subroutine Question

GAFGAF Posts: 25
edited 2007-05-12 10:02 in General Discussion
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.

Comments

Sign In or Register to comment.