analogWrite() (PWM) for Gen1.

Gen1 I/O Expander pin configuration code is now thread safe.
How bout the constants?