#define ENCODER_PIN_DT
GPIO of the ky-040 dt pin.
Definition: HardwareConfiguration.h:40
#define ENCODER_SWITCH
GPIO of the ky-040 sw pin.
Definition: HardwareConfiguration.h:45
#define ENCODER_PIN_CLK
GPIO of the ky-040 clk pin.
Definition: HardwareConfiguration.h:35
void ICACHE_RAM_ATTR encoderInterrupt(void)
Callback if one of the encoder's pin are changed.
Definition: main.cpp:78
Class used to globally disable enable interrupts.
Definition: UsedInterrupts.h:19
static void executeWithoutInterrupts(std::function< void(void)> f)
Execute the passed function without interrupts.
Definition: UsedInterrupts.h:58
static void attach()
attach the encoder pins to a interrupt
Definition: UsedInterrupts.h:30
static bool interruptsAttached
true if at attach() was called at least once
Definition: UsedInterrupts.h:24
static void detach()
detach the interrupts
Definition: UsedInterrupts.h:43