I have been looking through a few threads for a post regarding the use of
to set a bit, or bits.
DDRB |= 0x0F; //set lower 4 bits
I myself use this method rather frequently having learned it from this thread:
The post I am looking for IIRC discouraged using this. I believe it was favoring some other method that I cannot remember, but the post had a very direct explanation of the method, and the reason it is a better option than the one above.
If someone knows of the thread/post I would appreciate it if you could point it out. If anyone knows a better method of setting bit(s) I too would appreciate it.
This is a purely educational inquiry as I am always looking to better my crude progrmming skills.