Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
EncoderSwitchPinList Struct Reference

#include <Def/Def.hpp>

Detailed Description

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

Definition at line 31 of file Def.hpp.

+ Collaboration diagram for EncoderSwitchPinList:

Public Member Functions

 EncoderSwitchPinList (uint8_t A, uint8_t B, pin_t switchPin)
 Constructor for encoders with a switch.
 
 EncoderSwitchPinList (uint8_t A, uint8_t B)
 Constructor for encoders without a switch.
 

Public Attributes

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

Constructor & Destructor Documentation

◆ EncoderSwitchPinList() [1/2]

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

Constructor for encoders with a switch.

Definition at line 33 of file Def.hpp.

◆ EncoderSwitchPinList() [2/2]

Constructor for encoders without a switch.

Definition at line 36 of file Def.hpp.

Member Data Documentation

◆ A

The pin connected to the A pin of the encoder.

Definition at line 39 of file Def.hpp.

◆ B

The pin connected to the B pin of the encoder.

Definition at line 40 of file Def.hpp.

◆ switchPin

pin_t switchPin

The pin connected to the switch pin of the encoder.

Definition at line 41 of file Def.hpp.


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