PaulStoffregen / Encoder

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

add trinket and other small samd chip support #68

Closed ladyada closed 3 years ago

ladyada commented 3 years ago

Its the same chip core as the samd21g18 but fewer pins, so we can reuse the same code

ladyada commented 3 years ago

yay thanks :)

evanmayer commented 2 years ago

Sorry for thread necromancy.

I spent some time re-implementing these changes myself because I downloaded the most recent release and the changes aren't included in it. I saw this PR afterward.

  1. Thanks ladyada for making the PR
  2. Adding another datapoint to say that with this change, indeed the example code in at least SpeedTest.pde compiles on the Adafruit Trinket M0 with the Arduino IDE
  3. I look forward to the next release! Great library.