added code for tricolor led