MTobjects's buttons
Event management for Uno, Nano, Mega
Wiring
There are two ways to put a button on an Arduino card:

Either we put it between a pin from the Arduino and GND (rest is then HIGHT), or we put it between the pin and VCC (rest is then LOW, but it is necessary to put a resistance of 10kΩ between the entrance and GND. I recommend the first way, the second way is used if you cannot do otherwise.
When a button is declared with a HIGHT state at rest, the pullup resistance is automatically inserted by MTobjets.
Buttons operation
The buttons, like almost all MTobjects objects, can generate an event. A button when it becomes selected will generate an event, i.e. will call a function pointed out by the onSelectFunction and/or will call a function to be overloaded onSelect(). It is not compulsory, you can also test your condition.
MTbutton
An MTbutton object is selected if you press it. On release it is no longer selected. It is a pusher, a bell button.
MTdoubleButton
An object MTdoubleButton is selected if you press it. On release it is no longer selected. It is a pusher, a bell button. He also recognizes the double clicks.
MTtripleButton
An object MTdoubleButton is selected if you press it. On release it is no longer selected. It is a pusher, a bell button. He also recognizes the double and triple clicks.
MTcheckButton
A MTcheckButton object is selected if you press on it for the first time, and is deselected if you press a second time. Releasing has no effect. It is a switch as we use it for light. These are also the compter check box.
MTradioButton
A MTradioButton object activates when you press it. It deactivates if you press a push-button from the same group. By default there are 8 maximum groups of 16 buttons max. We can change this in the MTradioButton.h file