You didn't supply any code example so I am providing you this example to study. You should be able to change the port on the switch to the port and pin you are using.
On the CY8CKIT-062-BLE Pioneer kit, P1 is multiplexed with CapSense Tx pin. By default this pin is not brought out to the J19 on the kit.
You need to populate R101 (0 ohm) in order to use this pin.