Open proffalken opened 4 years ago
Have you wired pullup resitors to your input pins ? If not you should use
pinMode( pinX, INPUT_PULLUP );
or
pinMode( pinX, INPUT ); digitalWrite( pinX, HIGH );
(Not sure which syntax is supported with esp)
I've got resistors in place, but I think they're "pull down" instead.
I'll look at switching them to "pull up", but my main concern is that whilst I've avoided the pins for the OLED etc, I'm aware that multiple pins have multiple "roles" and I'm wondering if I've "clashed" somewhere.
Just get sure that your buttons wiring match the pull[up|down] resistors scheme : if the resistors are pulldowns, your button must put a positive voltage on the pin when activated, or the other way around - pullup resistors and button grounding the pins when triggered.
Hello,
When I run the following code, then no matter which switch I throw (the
INPUT
s), It seems to pick a random number of servos to change the position of.Is this a timing thing, or have I missed something important?