Improvements to bit conversion function

Added the ability to convert PWM or DC messages
Added an improved test that pulsates the led's based on current control