Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 5, 3 & 1 Forum Discussions

bhra_284931
Level 1
Level 1

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)

   

 

   

Thanking....

   

Bhupati

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Bhupati,

   

when you build a project archive we can have a look into your programming. To do so, use Designer (5.4) File -> Archive Project and attach the resulting file to your next post.

   

 

   

Bob

0 Likes