T-n-T: Connection of 2 buttons for 1 controller channel

The problem

It is required to connect 2 control buttons to 1 controller channel.

The solution

You can connect 2 control buttons of different polarities to one channel of the controller.

Connection diagram:

The solution (diagram).

The following algorithm is used to read button presses:

The solution (diagram).

When the positive polarity button is detected, the green control LED turns on, when the negative polarity button is detected, the red LED turns on.

To fix the pressing, the button must be held down for at least 200ms.

TODO:TRANSLATE

SEE ALSO