My team and I have been struggling to write code that uses a limit switch or bump switch. We want the code to make a counter that counts each time the switch is pressed down. However our code counts to roughly 60,000 for every 1 second it is pressed. It counts higher and higher the longer you hold it down. We just want the code to count it when it is pressed and not by how many seconds it was held down for. I do not have the code on my person as it is on my teammate's computer but if anybody could offer tips or guidelines to follow, it would much appreciated.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum