BasicMicroUK - Forums

www.basicmicro.co.uk
It is currently Wed Oct 17, 2018 9:08 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Wish List Command
PostPosted: Fri Nov 06, 2009 1:51 pm 
Offline
New User

Joined: Tue Oct 27, 2009 6:37 pm
Posts: 3
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


Top
 Profile  
 
 Post subject: Re: Wish List Command
PostPosted: Fri Nov 06, 2009 10:35 pm 
Offline
Master

Joined: Mon Aug 18, 2008 1:26 am
Posts: 799
Location: CA bay Area
Hello.
I'm sure I've seen this demonstrated somewhere. I'll have to ask BMicro's prgrammer.
Later.

_________________
kenjj
http://blog.basicmicro.com/
http://kjennejohn.wordpress.com/


Top
 Profile  
 
 Post subject: Re: Wish List Command
PostPosted: Tue Nov 10, 2009 11:41 pm 
Offline
Master

Joined: Mon Aug 18, 2008 1:26 am
Posts: 799
Location: CA bay Area
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.

_________________
kenjj
http://blog.basicmicro.com/
http://kjennejohn.wordpress.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO