MTobjects button sets
Event management for UNO, Nano, Mega
Multiple buttons
When you only have a few buttons, you generally use one pin per button. In this section, we will plug and use buttons in structures that consume fewer pins than buttons.
MTkeypad
(digital reading)
An MTkeypad object manages a square matrix of buttons.
- numerical reading of the keys.
- mono reading.
- maximum number of buttons = number of rows * number of columns.
- MTkeypad: square matrix
Rest under construction
MTanalogButtons
(analog reading)
An MTanalogButtons object manages sets of buttons using a table and a single analog read
- analog key reading.
- mono or poly playback.
- usable with all assemblies.
- BUT presence of a table (one word per button); this can be annoying if there are a large number of buttons.
- MTanalogButtons: analog reading by table
- Apprenticeship (calibrations)
- Example 1: Result
Rest under construction