MIDIButtonMatrix.  
 More...
#include <MIDIButtonMatrix.hpp>
 | 
| void  | begin () final override | 
|   | Initialize this updatable.  More...
  | 
|   | 
| void  | update () final override | 
|   | Update this updatable.  More...
  | 
|   | 
| void  | enable () | 
|   | Enable this updatable: insert it into the linked list of instances, so it gets updated automatically.  More...
  | 
|   | 
| void  | disable () | 
|   | Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically.  More...
  | 
|   | 
| bool  | isEnabled () | 
|   | Check if this updatable is enabled.  More...
  | 
|   | 
| bool  | getPrevState (uint8_t col, uint8_t row) | 
|   | Get the state of the button in the given column and row.  More...
  | 
|   | 
 | 
| void  | onButtonChanged (uint8_t row, uint8_t col, bool state) final override | 
|   | The callback function that is called whenever a button changes state.  More...
  | 
|   | 
| void  | setPrevState (uint8_t col, uint8_t row, bool state) | 
|   | 
template<class Sender, uint8_t nb_rows, uint8_t nb_cols>
class MIDIButtonMatrix< Sender, nb_rows, nb_cols >
MIDIButtonMatrix. 
- Todo:
 - Documentation.
 
- See also
 - AH::ButtonMatrix 
 
Definition at line 15 of file Abstract/MIDIButtonMatrix.hpp.
 
◆ MIDIButtonMatrix()
template<class Sender, uint8_t nb_rows, uint8_t nb_cols> 
 
 
◆ begin()
template<class Sender, uint8_t nb_rows, uint8_t nb_cols> 
  
  | 
      
   | 
  
inlinefinaloverridevirtual   | 
  
 
 
◆ update()
template<class Sender, uint8_t nb_rows, uint8_t nb_cols> 
  
  | 
      
   | 
  
inlinefinaloverridevirtual   | 
  
 
 
◆ onButtonChanged()
template<class Sender, uint8_t nb_rows, uint8_t nb_cols> 
  
  
      
        
          | void MIDIButtonMatrix< Sender, nb_rows, nb_cols >::onButtonChanged  | 
          ( | 
          uint8_t  | 
          row,  | 
         
        
           | 
           | 
          uint8_t  | 
          col,  | 
         
        
           | 
           | 
          bool  | 
          state  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinefinaloverrideprivatevirtual   | 
  
 
 
◆ enable() [1/4]
template<class T = NormalUpdatable> 
 
Enable this updatable: insert it into the linked list of instances, so it gets updated automatically. 
Definition at line 45 of file Updatable.hpp.
 
 
◆ enable() [2/4]
template<class T = NormalUpdatable> 
 
 
◆ enable() [3/4]
template<class T = NormalUpdatable> 
 
 
◆ enable() [4/4]
template<class T = NormalUpdatable> 
template<class U , size_t N> 
 
 
◆ disable() [1/4]
template<class T = NormalUpdatable> 
 
Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically. 
Definition at line 55 of file Updatable.hpp.
 
 
◆ disable() [2/4]
template<class T = NormalUpdatable> 
 
 
◆ disable() [3/4]
template<class T = NormalUpdatable> 
 
 
◆ disable() [4/4]
template<class T = NormalUpdatable> 
template<class U , size_t N> 
 
 
◆ isEnabled()
template<class T = NormalUpdatable> 
 
Check if this updatable is enabled. 
- Note
 - Assumes that the updatable is not added to a different linked list by the user. 
 
Definition at line 69 of file Updatable.hpp.
 
 
◆ beginAll()
template<class T = NormalUpdatable> 
 
 
◆ updateAll()
template<class T = NormalUpdatable> 
 
 
◆ getPrevState()
template<uint8_t nb_rows, uint8_t nb_cols> 
  
  
      
        
          | bool AH::ButtonMatrix< nb_rows, nb_cols >::getPrevState  | 
          ( | 
          uint8_t  | 
          col,  | 
         
        
           | 
           | 
          uint8_t  | 
          row  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inherited   | 
  
 
Get the state of the button in the given column and row. 
- Note
 - No bounds checking is performed. 
 
Definition at line 69 of file ButtonMatrix.ipp.
 
 
◆ positionToBits()
template<uint8_t nb_rows, uint8_t nb_cols> 
  
  
      
        
          | uint8_t AH::ButtonMatrix< nb_rows, nb_cols >::positionToBits  | 
          ( | 
          uint8_t  | 
          col,  | 
         
        
           | 
           | 
          uint8_t  | 
          row  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestaticprivateinherited   | 
  
 
 
◆ bitsToIndex()
template<uint8_t nb_rows, uint8_t nb_cols> 
  
  | 
      
   | 
  
inlinestaticprivateinherited   | 
  
 
 
◆ bitsToBitmask()
template<uint8_t nb_rows, uint8_t nb_cols> 
  
  | 
      
   | 
  
inlinestaticprivateinherited   | 
  
 
 
◆ setPrevState()
template<uint8_t nb_rows, uint8_t nb_cols> 
  
  
      
        
          | void AH::ButtonMatrix< nb_rows, nb_cols >::setPrevState  | 
          ( | 
          uint8_t  | 
          col,  | 
         
        
           | 
           | 
          uint8_t  | 
          row,  | 
         
        
           | 
           | 
          bool  | 
          state  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
privateinherited   | 
  
 
 
◆ addresses
template<class Sender, uint8_t nb_rows, uint8_t nb_cols> 
 
 
◆ baseChannelCN
template<class Sender, uint8_t nb_rows, uint8_t nb_cols> 
 
 
◆ sender
template<class Sender, uint8_t nb_rows, uint8_t nb_cols> 
      
 
 
◆ updatables
template<class T = NormalUpdatable> 
 
 
◆ next
◆ previous
◆ prevRefresh
template<uint8_t nb_rows, uint8_t nb_cols> 
 
 
◆ prevStates
template<uint8_t nb_rows, uint8_t nb_cols> 
  
  
      
        
          | uint8_t AH::ButtonMatrix< nb_rows, nb_cols >::prevStates[(nb_cols *nb_rows+7)/8] | 
         
       
   | 
  
privateinherited   | 
  
 
 
◆ rowPins
template<uint8_t nb_rows, uint8_t nb_cols> 
 
 
◆ colPins
template<uint8_t nb_rows, uint8_t nb_cols> 
 
 
The documentation for this class was generated from the following file: