Hi, I'm new to CCS programming and I have to program following:
Use switch SW1 to Turn on Red LED on first switch press, Green LED on second switch press and Blue LED on third switch press. Repeat the same cycle next switch press onwards. Note that LED should remain on for the duration switch is kept pressed i.e. LED should turn off when switch is released