I'm trying to read two encoders to know the angular position using interrupts but something is wrong, the code compiles but in serial just prints "0", what can i change?
volatile long Left_Encoder_Ticks = 0;
volatile bool LeftEncoderBSet;
#define Right_Encoder_PinA PC_5
#define Right_Encoder_PinB PC_6
volatile long Right_Encoder_Ticks = 0;
volatile bool RightEncoderBSet;
void setup()
{
Serial.begin(9600);
SetupEncoders();
}
void SetupEncoders()
{
pinMode(Left_Encoder_PinA, INPUT_PULLUP);
pinMode(Left_Encoder_PinB, INPUT_PULLUP);
a