rework analogWrite to fix run=0 issue

this patch does a small rework of the analogWrite function to fix
a small bug that allows the pwm to continue even after the "run"
sysfs entry has been set to 0.
tweak to display RGB colors

this tweak of the example pulses the Red, Green and Blue leds