pure encoder test working on pins d5 and d6
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user