I want to know if I can store a button push in a buffer to read afther loop code executio or I need to read the button push in the same moment that it pushing.
read button and is 0
turn led on
turn led off
If the user push the button while the code is in the "wait 1000" line. ¿What I will read in the next "read button" line 0 or 1? Its a problem if I have to read the button in the moment that the user in pressing it.
I have similar question with the RF communication using nrf24l01... ¿I have to read rf just while emissor is emiting or the module store the comunication in buffer?