Two control signals one GPIO

If you have an analog pin free you can use it as a digital I/O.