Hello!
I've made a sensor script that if it detects it goes to certain functions.
My question is: What are the ways that that script runs all day everyday?
Just simply while(1){} or is there any better solution?
Thx
You may find an infinite loop is satisfactory, more likely it will need a delay in the loop to sample at an appropriate rate without using a processor core full time.