Hey,
Im trying to use boolean values with p18 but it doesnt seem to accept the usual Bit method.
when i use the following
unsigned int direction:1;
this is supposed to convert the int into a single bit, ie. value 0 or value 1
But it doesnt work, the code compiles fine but it allows for other values to be placed into the int such as 2,3,4,5 etc....
The idea is to just have a variable with a boolean value, therefore cutting down on memory requirements.
Any suggestions?