Vous utilisez un navigateur non à jour ou ancien. Il ne peut pas afficher ce site ou d'autres sites correctement. Vous devez le mettre à jour ou utiliser un navigateur alternatif.
En coursRéglage vitesse moteur p.a.p avec minuterie
Mais, j'ai toujours ce petit "bug" d'être obligé d'appuyer 3 fois de suite à intervalle d'une seconde pour ça démarre. Dis-moi ou je dois fouiller ... pour comprendre la chose.
J'ai fait une modif dans MD_UISwitch.h. A priori ça règle mon problème.
protected:
// Default values for timed events.
// Note these are all from the same base (ie when the switch is first detected)
static const uint16_t KEY_PRESS_TIME = 400; ///< Default key press time in milliseconds
static const uint16_t KEY_DPRESS_TIME = 400; ///< Default double press time between presses in milliseconds
static const uint16_t KEY_LONGPRESS_TIME = 600; ///< Default long press detection time in milliseconds
static const uint16_t KEY_REPEAT_TIME = 400; ///< Default time between repeats in in milliseconds
static const uint8_t KEY_ACTIVE_STATE = LOW; ///< Default key is active low - transition high to low detection
au lieu de:
protected:
// Default values for timed events.
// Note these are all from the same base (ie when the switch is first detected)
static const uint16_t KEY_PRESS_TIME = 250; ///< Default key press time in milliseconds
static const uint16_t KEY_DPRESS_TIME = 350; ///< Default double press time between presses in milliseconds
static const uint16_t KEY_LONGPRESS_TIME = 700; ///< Default long press detection time in milliseconds
static const uint16_t KEY_REPEAT_TIME = 400; ///< Default time between repeats in in milliseconds
static const uint8_t KEY_ACTIVE_STATE = LOW; ///< Default key is active low - transition high to low detection