Hi all.
What is the best practice to set the system in standby? I have a PWM and when is active the system can be in a low power consumption until a button is pressed. But for that, using zephyr, what can I do to reduce consumption? is the k_msleep() a good practice for that?
Also, for example a code when I set a led to turn ON when the system is fully charged, is a good practice to also keep a k_msleep() to do nothing waiting for the state to be off to power_off the system?
Best regards