Two control signals one GPIO

can you go for a different MCU with more pins ? Which esp32 are you using?