cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Anonymous
Not applicable

Hey guys! Can somebody help me or explain how to solve challenge which was given in the end of  that lesson - https://www.youtube.com/watch?v=v5pba8q9bfM&list=PLIOkqhZiy83F-sOQhHyX8dJjebkWqZA3Y&index=26

   

I stacked on that stage when my text is printing while I hold my finger on button, but task is to print it once and print text when you put off your finger.

Here is my code ex.
 

0 Likes
Reply
7 Replies
Esteemed Contributor II

You will have to remember the last button states to compare with the actual states and react accordingly.

   

 

   

Bob

0 Likes
Reply
Anonymous
Not applicable

Can you explain me how to do it correctly?

0 Likes
Reply
Esteemed Contributor II

Can you please post your complete actual project, will make changes easier, To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes
Reply
Anonymous
Not applicable

I've made some progress but now is another problem. It works just once - prints each command once and after that doesn't react.
Here is project bundle

0 Likes
Reply
Esteemed Contributor II

Changed. Not tested, try it.

   

 

   

Bob

0 Likes
Reply
Anonymous
Not applicable

that's cool, thx a lot. 

0 Likes
Reply
Esteemed Contributor II

You are always welcome!

   

 

   

Bob

0 Likes
Reply