added rest of code to make the tricolor led functional