Hello everyone,
I'm programming nRF52833 for my own application. In my application, I have a button to turn on and turn off the supplier. There is only 1 button so that I decided to have a plan like this:
- If I press the button and hold it for 1 sec, I turn the device on
- If I press the button and hold it for 3 secs, the device turns off
So that I have some following questions:
- How can I do it with BSP? I have read many topics related to my topic but I really don't understand how can they do it with a time they want. So please tell me something about it?
- My application using FREERTOS, so is that possible to do what I aforementioned using FREERTOS???
Thanks,
Best regards,