Support for Arduinos with dif pin cnts

Support for Mega and other arduinos with more or less than 16 digital
and 6 analog pins.
Check for pin PWM capabliity on set PWM output