Update pin_magic.h

Optimizing code to use Output Register for D0-D7 instead of digitalWrite
Changing WR_ACTIVE and WR_IDLE to use optimized digitalWrite.