analogWrite() (PWM) for Gen1.

Gen1 I/O Expander pin configuration code is now thread safe.
What about other functions (i.e. SPI)