En cours Réglage vitesse moteur p.a.p avec minuterie

  • Auteur de la discussion gaston83
  • Date de début
S

speedjf37

Compagnon
Bonjour,

Il manque une petite modif:

menu_shield_timer_stepper.ino
ligne167
//lcd.clear(); // deplacé dans set_menu_exit

Menu.h
void set_menu_exit()
{
lcd.clear();

JF
 
G

gaston83

Compagnon
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.:wink:
 
G

gaston83

Compagnon
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
 

Sujets similaires

V
Réponses
3
Affichages
1 034
vibram
V
G
Réponses
0
Affichages
600
gaston83
G
Moi33
Réponses
3
Affichages
47 985
speedjf37
S
F
Réponses
6
Affichages
25 663
fraiddy
F
zygo4619
Réponses
34
Affichages
35 450
zygo4619
zygo4619
V
Réponses
62
Affichages
5 357
vibram
V
Mcar
Réponses
65
Affichages
11 678
Mcar
U
Réponses
85
Affichages
7 234
Hubert86
H
shodan47
Réponses
7
Affichages
9 705
shodan47
shodan47
M1M1HRC10
Réponses
7
Affichages
38 034
M1M1HRC10
M1M1HRC10
F
Réponses
14
Affichages
3 011
franckapik
F
G
Réponses
65
Affichages
9 292
rokag3
R
Haut