I would like to use my chips shield pin to determine if there is a 0 Ohm resistor connecting two hatchedplanes on my board on startup. If the resistor is sensed I would then like to Enable the CapSense shield. If the resistor is not sensed I would then like to Disable the CapSense shield. Seeing that the hatched planes are parallel hatched planes I would think I could measure the capacitance and it would change with/without the presence of the resistor connecting them. I have attached an image of the board as reference. The red hatched plane is connected to the shield pin and when the the resistor (R5) is present the blue hatched plane is also connected to shield. When R5 is not present, R6 is, which then makes the blue hatched plane a ground plane.
So, my question is: How/can you Enable/Disable CapSense Shield programmatically? and would it be possible to use the shield pin to sense the presence of the resistor?