Is there a way to set a Pin as a variable?
Something like:
Using myPin VAR PORTB.1 is not good since I cannot define the variable several times. Am I missing something obvious?Code:...
myPin = PORTB.1
High myPin
Pause 1000
Low myPin
myPin = PORTA.0
High myPin
Pause 500
Low myPin
...