Hi guys, i'm working on my project with pic16f877a. I intend create a traffic light system by using bluetooth to control. It has 2 way to work, first way is automatic traffic light, when i crack the switch, it will turn off then change to control by hand. I don't know how to combine the bluetooth code when it changed to control by hand. Please help, here is my code, thank you everyone.