1 Reply Latest reply on Dec 25, 2015 3:05 AM by JoMe_264151

    LED on/off using by Switch (CY8C20666A)


      Dear all,




      Here am using PSoc1 (CY8C20666A),I want to write a code for LED ON/OFF by using  two pin switch(this switch one pin connected to Vcc and Another pin connected to controller pin).


      When am pressing the switch, LED will glow and Off simultaneously.


      In my hardware ,i was connected a switch to P2.1, LED to P4.3 


      In the coding, in built function is available for the LED ON/OFF like LED_OFF( LED0_Data_ADDR , LED0_MASK)


       Please give me a code for individual pin(switch)