

case 2: only first pin used as interrupt or shift register circuit which emulates a quadrature encoder Change these two numbers to the pins connected to your encoder

You can also replace the complete register stuff and simply use #include For a T4.x you can simply replace it by // #if defined(_AVR_) || defined(TEENSYDUINO) It looks like it was done for the old AVR Teensies and was not adjusted to the 32bit ARM boards. I'm not sure why it is calling this a conversion error between volatile uint32_t* to volatile unsigned char*, or where I need to change the definition. So I tried changing it to match the given solution, but I get the same errors. The only difference being the PIN_TO_BASEREG definition in the answer on git is #define PIN_TO_BASEREG(pin) (portOutputRegister(pin)) I found a file with similar code in Arduino\hardware\teensy\avr\libraries\Encoder\utility\direct_pin_read.h #define IO_REG_TYPE uint32_t #define PIN_TO_BITMASK(pin) (digitalPinToBitMask(pin)) #define PIN_TO_BASEREG(pin) (portInputRegister(digitalPinToPort(pin))) He says to add the following code to that file #if defined(_IMXRT1062_) However there is no "direct_pin_red.h" which is what the answer there says to add the code to.

I found a similar sounding issue on the Github here, but with a different version: I searched and wasn't able to find an answer anywhere. This report would have more information with Volatile REGTYPE *reg = portOutputRegister(digitalPinToPort(outputPin)) You can build the user interface to your exact.
#Int speedtest install#
#define portOutputRegister(pin) ((digital_pin_to_info_PGM.reg + 0))Ĭ:\Users\name~1\AppData\Local\Temp\arduino_modified_sketch_275677\SpeedTest.pde:101:27: note: in expansion of macro 'portOutputRegister' Built in JavaScript, the Web SDK allows you to install Speedtest as the testing solution on your website. When I try to build the teeny 4.1 encoder>speedTest.ino example I get the following error:Įrror: cannot convert 'volatile uint32_t ' to 'volatile unsigned char*' in initialization
