mcbuilder23
Member
Will the encoder library be updated to work with the Teensy 4.1?
It works with 3.2 and 3.6 but I get this error when compiling for 4.1
encoder.pin1_register = PIN_TO_BASEREG(pin1);
^
C:\Users\******\Documents\Arduino\libraries\Encoder/Encoder.h:84:25: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
encoder.pin2_register = PIN_TO_BASEREG(pin2);
It works with 3.2 and 3.6 but I get this error when compiling for 4.1
encoder.pin1_register = PIN_TO_BASEREG(pin1);
^
C:\Users\******\Documents\Arduino\libraries\Encoder/Encoder.h:84:25: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
encoder.pin2_register = PIN_TO_BASEREG(pin2);