HI
The SDK is "nRF5_SDK_for_Thread_and_Zigbee_v4.1.0" and I find a question that is: for all thread programs, add nrf_ delay_ ms () function in while (true) will affect the operation delay of the key, what's the matter?
thanks!
HI
The SDK is "nRF5_SDK_for_Thread_and_Zigbee_v4.1.0" and I find a question that is: for all thread programs, add nrf_ delay_ ms () function in while (true) will affect the operation delay of the key, what's the matter?
thanks!
Hi again
I'm still not sure I understand you correctly. A delay in your main loop should not cause any interrupts to be delayed, as interrupts are meant to interrupt things like delays. Unfortunately, the code snippet you've added is not very helpful.
Can you try to explain what you said in your last sentence again? What do you mean by "if I add code segment in main loop it will cause button maybe invalid"?
Best regards,
Simon
Hi again
I'm still not sure I understand you correctly. A delay in your main loop should not cause any interrupts to be delayed, as interrupts are meant to interrupt things like delays. Unfortunately, the code snippet you've added is not very helpful.
Can you try to explain what you said in your last sentence again? What do you mean by "if I add code segment in main loop it will cause button maybe invalid"?
Best regards,
Simon
Hi
Thank you very much for being so patient with my question,what I mean is if you add a delay in main loop ,the button must be long push will work , and if you add not fixed delay in main loop just like code segment ( it is not fixed delay) and the button will be not work. I want to konw why? I can assure you that this problem is not caused by my code modification, but by itself,because I just add " nrf_delay_ms(1000); "
thanks !