BasicMicroUK - Forums

Wish List Command
Page 1 of 1

Author:  wb7ond [ Fri Nov 06, 2009 1:51 pm ]
Post subject:  Wish List Command

Hi All

I would like to see added to the Basic Atom:
Input Pin constants like they have for Output Pin constants.


IF SW2=1 Then.....

If SW3=0 then ......


Author:  kenjj [ Fri Nov 06, 2009 10:35 pm ]
Post subject:  Re: Wish List Command

I'm sure I've seen this demonstrated somewhere. I'll have to ask BMicro's prgrammer.

Author:  kenjj [ Tue Nov 10, 2009 11:41 pm ]
Post subject:  Re: Wish List Command

The answer was so simple I begged for something more complicated so I looked heroic when I answered. No such luck.

The IN# is actually a pin variable name. So, you can assign IN7 to a variable name using VAR:
SW1 var IN7
If P7 is the input for your switch you can do:
IF SW1 = 0 then...

Have a nice project.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group