The analogue input pins can also be used like regular digital input / outputs as well. On a UNO they are pins 14 to 19.