#include<12f629.h> #use delay(clock=4M) #fuses INTRC_IO,NOWDT,NOMCLR #bit L1= 5.0 #bit L2 = 5.2 #bit S= 5.5 #bit ON=5.3 #bit a4=5.4 main(){ set_tris_a(0x00001000); a4=1; while(1){ if(!ON){ L1=1; L2=1; S=1; delay_ms(5); S=0; delay_ms(45); L1=0; L2=0; delay_ms(50); } } }