Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
hi everyone. i want to ask something. for ex. i have a pic microcontroller and when I press the button which is connect to input pin, one of the pins sets output. but I want that output pins sets as out when I press the button 3 times. how can I do that ?
Read the button in ta loop and set a counter when counter equal 3 set the port high make sure you debounce the button to get a clean press. Or your 3 presses will happen so fast you'll think it was just one press.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.