pure encoder test working on pins d5 and d6

This commit is contained in:
2025-12-28 12:46:10 -06:00
parent 9c64f91bcc
commit 12b38f15f1
4 changed files with 92 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
#ifndef DEFINES_H
#define DEFINES_H
#include "driver/gpio.h"
#define ccwSpeed 6500
#define cwSpeed 3300
@@ -15,6 +16,9 @@
#define nvsAuth "AUTH"
#define tokenTag "TOKEN"
#define ENCODER_PIN_A GPIO_NUM_23
#define ENCODER_PIN_B GPIO_NUM_16
#define getMovingCW(port) ((movingCW & (1 << port)) >> port)
#define setMovingCW(port) (movingCW |= (1 << port))
#define clearMovingCW(port) (movingCW &= ~(1 << port))