1 2 Previous Next 15 Replies Latest reply on May 24, 2013 3:44 PM by walter.madalinski

    Proximity sensing with PSOC 3

    walter.madalinski

      Hello,

         

      I am very new with PSOC and embedded programming.  I have been having issues with CapSense proximity sensing.   I have created a proximity widget and assigned it a sensor.  I have other capsense buttons on my board which have been configured as well and are working.  I have not been able to figure out how to use the tuner with a proximity sensor.  I read that all widgets are enabled by default except proximity widgets.  How do you manually enable a proximity widget so you can use it in the tuner?  Below is the part of my code that is dealing with CapSense.  Thank you for your help.

         

      -Walt

         

       

         

      (This portion of code is in my main)

         

       

         

      /* start tuner operation */

         

              CapSense_1_TunerStart();

         

      CapSense_1_EnableSensor(CapSense_1_SENSOR_PROXIMITYSENSOR1_0__PROX);  //Not sure where to put this??

         

      for(;;)

         

             {

         

              CapSense_1_TunerComm();

         

      }

         

      /* end tuner operation */

        1 2 Previous Next