Modifications

Sauter à la navigation Sauter à la recherche
138 octets ajoutés ,  29 avril 2025 à 00:05
Ligne 139 : Ligne 139 :  
==== was_pressed(): bool ====
 
==== was_pressed(): bool ====
   −
Check if a given button has been pressed since the last check.
+
Check if a given button has been pressed since the last check. It also resets the pressed state for that given button.
 +
 
 +
{{underline|Reminder:}} the button state change is capture by IRQ event handler.
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
32 908

modifications

Menu de navigation