Control Surface  1.2.0
MIDI Control Surface library for Arduino
Public Member Functions | Public Attributes | List of all members
EncoderSwitchPinList Struct Reference

A struct for the pins of a rotary (quadrature) encoder with a switch. More...

#include <Def/Def.hpp>

+ Collaboration diagram for EncoderSwitchPinList:

Public Member Functions

 EncoderSwitchPinList (uint8_t A, uint8_t B, pin_t switchPin)
 
 EncoderSwitchPinList (uint8_t A, uint8_t B)
 

Public Attributes

uint8_t A
 The pin connected to the A pin of the encoder. More...
 
uint8_t B
 The pin connected to the B pin of the encoder. More...
 
pin_t switchPin = NO_PIN
 The pin connected to the switch pin of the encoder. More...
 

Detailed Description

A struct for the pins of a rotary (quadrature) encoder with a switch.

Definition at line 30 of file Def.hpp.

Constructor & Destructor Documentation

◆ EncoderSwitchPinList() [1/2]

EncoderSwitchPinList ( uint8_t  A,
uint8_t  B,
pin_t  switchPin 
)
inline

Definition at line 32 of file Def.hpp.

◆ EncoderSwitchPinList() [2/2]

EncoderSwitchPinList ( uint8_t  A,
uint8_t  B 
)
inline

Definition at line 34 of file Def.hpp.

Member Data Documentation

◆ A

uint8_t A

The pin connected to the A pin of the encoder.

Definition at line 37 of file Def.hpp.

◆ B

uint8_t B

The pin connected to the B pin of the encoder.

Definition at line 38 of file Def.hpp.

◆ switchPin

pin_t switchPin = NO_PIN

The pin connected to the switch pin of the encoder.

Definition at line 39 of file Def.hpp.


The documentation for this struct was generated from the following file: