Automatically detect LED type (for setting mode) based on pin address

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Fixes bug where PWM Leds start with 0 and therefore on() sends a 0 value. Includes tests

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>