This is an old version of the documentation. View the latest version here.
Control Surface  1.0.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.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 43 of file Def.hpp.

Constructor & Destructor Documentation

◆ EncoderSwitchPinList() [1/2]

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

Definition at line 45 of file Def.hpp.

◆ EncoderSwitchPinList() [2/2]

EncoderSwitchPinList::EncoderSwitchPinList ( uint8_t  A,
uint8_t  B 
)
inline

Definition at line 47 of file Def.hpp.

Member Data Documentation

◆ A

uint8_t EncoderSwitchPinList::A

The pin connected to the A pin of the encoder.

Definition at line 50 of file Def.hpp.

◆ B

uint8_t EncoderSwitchPinList::B

The pin connected to the B pin of the encoder.

Definition at line 51 of file Def.hpp.

◆ switchPin

pin_t EncoderSwitchPinList::switchPin = NO_PIN

The pin connected to the switch pin of the encoder.

Definition at line 52 of file Def.hpp.


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