getpin/putpin

Started by "wimn.rm" February 21, 2007
Can a variable be used in the getpin(pin) command?

something like:

pinnmbr = 13
pinval = getpin(pinnmbr)

I have quite a large program to control 3 intelligent sensors.
Would be nice to have 1 program to control all 3 sensors by just
changing the pin number assignment.
Sure. Here's two loops to float all BX-24 pins, for example:

public sub Power_FloatPins()
dim bX as byte
for bX = 5 to 20
call PutPin(bX, bxInputTriState)
next
for bX = 25 to 27
call PutPin(bX, bxInputTriState)
next
end sub

Tom Becker
--... ...--
G...@RighTime.com G...@SWFla.RR.com www.RighTime.com
The RighTime Clock Company, Inc., Cape Coral, Florida USA
Great! Thanks Tom.

--- Tom Becker wrote:

> Sure. Here's two loops to float all BX-24 pins, for
> example:
>
>
> public sub Power_FloatPins()
> dim bX as byte
> for bX = 5 to 20
> call PutPin(bX, bxInputTriState)
> next
> for bX = 25 to 27
> call PutPin(bX, bxInputTriState)
> next
> end sub
>
>
>
>
> Tom Becker
> --... ...--
> G...@RighTime.com G...@SWFla.RR.com
> www.RighTime.com
> The RighTime Clock Company, Inc., Cape Coral, Florida
> USA
>
>
Wim Nijntjes
Oranjekanaal 38 NZ
9415TP Hijken
The Netherlands

____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com