i am using codevision to write a program for a mega64.
in my definitions i used:
#define input PORTG.0
and then in the program i used:
if (input == 1)
do this do that etc
but when I compile it gives me an error sayin:
"the first argument of the '.' operator must be of 'struct' or 'union' type" and highlights the 'if' line which refers to the #define input line.
Is there something wrong with my syntax? How can I do this, what am I doing wrong?
searching the net, help files, data sheets hasn't really lead me anywhere so your help will be much appreciated.