I'm checking out an example in a book I'm reading and I have a question regarding initialization.
DDRB |= 1<<2|1<<3;//Declare as outputs
From what I've read the
|=
What I don't understand is why use:
1<<2|1<<3
Won't both of these conditions
1<<2
1<<3
If they are always true why not simply declare DDRB using the following:
DDRB = 1;
Thanks for any help.