This library uses a PCF8575 to read the pulses of a rotary encoder. As a PCF8575 has 16 lines up to 5 decoders with a switch can be read over I2C. The PCF interrupt line can be used to detect changes ...
In the long ago, pre-internet days when your clock project wasn’t an ESP32 getting its timing via NTP over WiFi, it was still ...