How to use the CapSense and the Sleep modes together?
The user modules will be started after the device wakes up from sleep. However, in PSoC 3/ PSoC 4 and PSoC 5LP devices, CapSense has a special API – CapSense_Wakeup() that should be called after waking up from sleep. The difference between CapSense_Start() and CapSense_Wakeup() is the Start function that will configure all the hardware connections and configuration of CapSense and initialize the variables related to CapSense such as finger threshold, Noise threshold, and debounce. The Resume function just restores the hardware connections and configuration of CapSense. The initializing the variables after sleep might cause the unexpected behavior in the CapSense functionality.