4 Replies Latest reply on Dec 17, 2013 5:08 PM by user_78878863

    AN60024

    user_301665782

      Hi every one !!!

         

      Can anyone tell me what does it means sw_Read() in AN60024 ?

         

      Here is piece of code.

         

      /* Init switch variables */
          uint8 switches[2] = {0, 0}; /* [0] = current, [1] = previous */
          switches[0] = switches[1] = SW_Read(); /* 0 = pressed, 1 = not pressed */
         
      I believe is a kind of fuction that get the state of pin wher the switch is conected, is that correct.?

         

      Thank you very much