What it happens when i declare a port direction twice?
for example:
DDRB = (1<<PB1)|(1<<PB2)|(1<<PB3)
DDRB |= (1<<PB4)
i tried and PB4 not working.
if i declare at the first with or too. for example:
DDRB |= (1<<PB1)|(1<<PB2)|(1<<PB3)
DDRB |= (1<<PB4)
in second case PB4 works fine.
i think the or operator makes much more sense in second part. but i dont understand what's effect takes in first part.