AP switch pin numbers as variables