added code for Tri-color led