Using a rotary encoder, I’ve wired up a dimmable LED using an AtTiny. I haven’t worked with a rotary encoder before and quickly discovered it was nothing like a potentiometer besides for the fact that it turns. The rotary encoder also has a push button which I’d like to further incorporate and be able to toggle on and off the LED without going through the dimming process.