Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
Mydin-Class-Pico3Mod
(voir la source)
Version du 29 avril 2025 à 11:08
139 octets ajoutés
,
29 avril 2025 à 11:08
→was_pressed(): bool
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.
Admin
Bureaucrates
,
Administrateurs
32 908
modifications
Menu de navigation
Outils personnels
Se connecter
Espaces de noms
Page
Discussion
Variantes
Affichages
Lire
Voir le texte source
Voir l’historique
Plus
Rechercher
Navigation
ARDUINO
RASPBERRY-PI
[:: PI Hacking ::]
Particle.IO
Micro Python
Imprimante 3D
Actualités
Modifications récentes
Page au hasard
Aide
Outils
Pages spéciales
Version imprimable