Rotary_Encoder_Breakout-Illuminated icon indicating copy to clipboard operation
Rotary_Encoder_Breakout-Illuminated copied to clipboard

Use EnableInterrupt lib, INPUT_PULLUP, and other little fixes

Open jfbauer432 opened this issue 3 years ago • 0 comments

This only changes RG_Rotary_Encoder but most changes probably should apply to RGB_Rotary_Encoder as well but I don't have one to test.

  • Sets input pins to INPUT_PULLUP
  • Replaces usage of PinChangeInt lib in favor of EnableInterrupt
  • Uses faster serial speed
  • Does LED flash (when turning rotary) even if currently off
  • Sets initial LED state to x so it doesn't change unexpectantly
  • Doesn't spam serial when holding button down

jfbauer432 avatar Apr 30 '21 21:04 jfbauer432