DDRx is used for direction. But the logic is inverse from PIC: writing 1 to a bit in DDRx makes the pin OUTPUT.