In AVR C code, if you want to declare some port as ouput, you just have to to do this:
DDRB = 0xFF;
But how can I do if I want to declare as ouput just one pin. For example, I want to declare has output Arduino's pin 13, which corresponds to PB5.
I know I can declare that in binary format:
DDRB = b11111111;
But, I don't know which bit position corresponds to PB5.
Thanks in advance, I could not find this answer in Google.