Just wondering if anyone can help me with a problem?
I'm picking up where I left off a few years back, this time using Studio 7.
I'm trying to use the #DEFINE function in this type of format: -
#define EW_RED_LIGHT PORTB0
and later in my code, I'm using this instruction: -
EW_RED_LIGHT = 1;
Upon compiling, I get the following error: - "Value required as left operand of assignment"
What am I doing wrong? These seem to me to be acceptable commands?
Thanks in advance for any help.