Small mod performing pinMode(pin, OUTPUT) to ensure PxDIR is set (required for setting Timer Compare mode vs. Timer Capture mode)