const int encoderPinsA[NUM_ENCODERS] = { 10, 8, 6, 4, 2 }; // Encoder A pins; any PCINT pin const int encoderPinsB[NUM_ENCODERS] = { 11, 9, 7, 5, 3 }; // Encoder B pins; arbitrary - pick any IO #ifdef ...
#include "rom/gpio.h" #define GPIO_MATRIX_CONST_ZERO_INPUT GPIO_FUNC_IN_LOW #define GPIO_MATRIX_CONST_ONE_INPUT GPIO_FUNC_IN_HIGH ...