November 21, 2024, 11:46:40 AM

News:

You can now use Vixen to program your Prop-1 and Prop-2 controllers!  Get started quickly and easily, without having to learn PBASIC.  Details in the Library forum.


# vs PIN#

Started by dgme, January 18, 2012, 01:52:50 PM

Previous topic - Next topic

dgme

What is the difference between setting an I/O definition to a # vs PIN#?  The Prop-1 template code uses

SYMBOL  Sio             = 7                     ' SETUP = out; no ULN
SYMBOL  Trigger         = PIN6                  ' SETUP = DN

so why is one 7 and the other is PIN6?  I have a solenoid on pin 2 so I wrote SYMBOL Solenoid = PIN2 but it wasn't right.  I changed it to Solenoid = 2 and that works.  Can someone explain whats going on here?

JonnyMac

This thread explains it: http://www.efx-tek.com/php/smf/index.php?topic=1773.0

The X versus PINX thing is one of the trickiest aspects of the Prop-1, especially for those that do not have -- and really don't want to acquire -- and embedded programming background.
Jon McPhalen
EFX-TEK Hollywood Office

dgme

Oh shoot, I missed a sticky.  I need to search better.  Thank you for the quick reply; I think I get it now.