Thank you for telling us now. Nothing you have posted will do what you seem to have been asked to do. Good luck.Port B has lights on them and the switches are on PortA. so I won't be able to use the switch as interrupts. Teacher had configured it that way.