PaulStoffregen / Encoder

Quadrature Encoder Library for Arduino
http://www.pjrc.com/teensy/td_libs_Encoder.html
540 stars 239 forks source link

Arduino UNO R4 MINIMA not supported #98

Open GralfR opened 9 months ago

GralfR commented 9 months ago

Description

This library is not working on Arduino UNO R4 Minima. Lots of errors like "...has no member named..." concerning pin bitmask and registers.

Steps To Reproduce Problem

Download library (seams to be version 1.4.3 on Sept 17 2023). Add library to IDE (used 1.8.10). Open Basic example. Choose Arduino UNO R4 Minima as board. Compile.

Hardware & Software

Board: Arduino UNO R4 Minima Shields / modules used: none Arduino IDE version: 1.8.10 Operating system & version: Win10 pro

Arduino Sketch

the included example "Basic".

Errors or Incorrect Output

'IO_REG_TYPE' does not name a type

mich-j commented 4 months ago

You can check out a fork made by mjs513, branch Arduino-R4. It works well with the R4.

pandel commented 3 months ago

I tried the fork by mjs53 today on a R4 WIFI, but sadly, nothing works. The encoder works absolutely flawless on a R3 with the original library, but not with the fork on the R4 and, for sure, not with the original library.

GralfR commented 3 months ago

For my project I finally used the library by Mathias Hertel: RotaryEncoder It works on my R4 Minima.

pandel commented 3 months ago

Many thanks! It might be a solution for another project. I decided to drop the whole library and handle the encoder myself. Works beautiful so far so that I don't need any library atm.