BasicMicroUK - Forums
http://forums.basicmicro.co.uk/

Wish List Command
http://forums.basicmicro.co.uk/wish-list-f500/wish-list-command-t9147.html
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.

SW2 CON P0
SW3 CON P1

IF SW2=1 Then.....

If SW3=0 then ......

Dick

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

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

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
http://www.phpbb.com/