Ian Rogers
- Joined Dec 12, 2012
- 1,136
The other thing.. Toggling a bit..... RC7 = ~(RC7); ( bitwise not! )
All others are byte wise and only work if indexed or are 0.. RC7 ^= (1<< 7);
or RC0 = !RC0;
I don't know why the parenthesis are needed, but it doesn't work unless you use it!
It must be a compiler thing as using the Arduino IDE it does work without parenthesis!!!
All others are byte wise and only work if indexed or are 0.. RC7 ^= (1<< 7);
or RC0 = !RC0;
I don't know why the parenthesis are needed, but it doesn't work unless you use it!
It must be a compiler thing as using the Arduino IDE it does work without parenthesis!!!