Modifications

Sauter à la navigation Sauter à la recherche
139 octets ajoutés ,  29 avril 2025 à 11:08
Ligne 137 : Ligne 137 :  
==== was_pressed(): bool ====
 
==== was_pressed(): bool ====
   −
Check if a given button has been pressed since the last check. It also resets the pressed state for that given button.
+
Check if a given button has been pressed since the last check. This method also resets the pressed state for the requested button.
 +
 
 +
{{fname|was_pressed()}} is very handy to check if a button was pressed while the ''userloop'' or other tasks were processing.
    
{{underline|Reminder:}} the button state change is capture by IRQ event handler.
 
{{underline|Reminder:}} the button state change is capture by IRQ event handler.
32 908

modifications

Menu de navigation