tms8c8:
I keep getting the following error when I try to compile:Program:106: error: expected primary-expression before '=' token
There is no "=" used for assignment when using a #define.
#define MYPIN 1
works, while
#define MYPIN = 1
won't. Also, the other common mistake is to use a semicolon
#define MYPIN 1;
which in general will also cause many interesting problems.
Finally, good style is to use all uppercase for your #define macros, i.e., MYPIN rather than MyPin, if MyPin could be confused with a variable. Helps with readability and maintenance.