Rotary_Encoder_Breakout-Illuminated
Rotary_Encoder_Breakout-Illuminated copied to clipboard
Use EnableInterrupt lib, INPUT_PULLUP, and other little fixes
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