FergusonRW
New Member
What is the equivalent of a "PBasic" PIN declaration? It appears that I need to use "outpin1" to set pin1 to High/Low in my code. For readability and flexibility I would like to use a pin name instead of "outpin1". Is there a way to use a name instead of "outpin1" when pin 1 is to be set high/low depending on the contents of another bit variable?
For example:
SYMBOL Pin_GreenLED = outpin1 ' Use a symbol name in place of "outpin1".
~
~
Pin_GreenLED = my_bit0 ' output pin number 1 is assigned high/low depending on variable
~
~
Thank you
For example:
SYMBOL Pin_GreenLED = outpin1 ' Use a symbol name in place of "outpin1".
~
~
Pin_GreenLED = my_bit0 ' output pin number 1 is assigned high/low depending on variable
~
~
Thank you