turned encoder into class

This commit is contained in:
2025-12-28 15:31:20 -06:00
parent 12b38f15f1
commit 2a79df3050
4 changed files with 90 additions and 53 deletions

View File

@@ -19,6 +19,9 @@
#define ENCODER_PIN_A GPIO_NUM_23
#define ENCODER_PIN_B GPIO_NUM_16
#define InputEnc_PIN_A GPIO_NUM_1
#define InputEnc_PIN_B GPIO_NUM_2
#define getMovingCW(port) ((movingCW & (1 << port)) >> port)
#define setMovingCW(port) (movingCW |= (1 << port))
#define clearMovingCW(port) (movingCW &= ~(1 << port))