Maker Pro
Maker Pro

code repeat??

gatoulisss

Jan 23, 2015
36
Joined
Jan 23, 2015
Messages
36
hello guys!
is there any way of repeat this code line without writing them?

delay_ms(5000);
if (porta.f0==0) {goto start;}

because if i write it the programm crashes i dont know why... maybe the delay times are too big
 

gatoulisss

Jan 23, 2015
36
Joined
Jan 23, 2015
Messages
36
i use loops but after 5 times of writting this then the programm excecutes ( i dont know why) i want to make 4 modes of checking an alarm sensor
mode A: no ring only sensor check
mode B: every 15sec ring with every 5sec sensor check
mode C: every 30 sec ring with every 5sec sensor check
mode D: every 60sec ring with every 5sec sensor check
 

KrisBlueNZ

Sadly passed away in 2015
Nov 28, 2011
8,393
Joined
Nov 28, 2011
Messages
8,393
Post the code you tried, and describe clearly what doesn't work.
 
Top