Creating a password that needs to be entered through buttons to activate a servo motor

The code with bounce2 library works perfectly with some adjusts due the circuit.

button[i].fell();
button[i].attach(buttonPin[i], INPUT_PULLUP);

Changed to:

button[i].rose();
button[i].attach(buttonPin[i], INPUT);

The output:

Captura de tela de 2023-02-08 20.16.22

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.