Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • Isn't this just making a toggle button? Commented Feb 9, 2016 at 12:26
  • It calls doButton when the button is pushed and doReturnButton if the button is still pressed after a time limit. Commented Feb 9, 2016 at 12:31
  • Ah sorry I just got to understand the code better hang on. Commented Feb 9, 2016 at 12:31
  • I am genuinely sorry but can you please explain each part of the code? it would really help me understand it as well as broaden my knowledge of arduino. Commented Feb 9, 2016 at 15:59
  • On a long press, you will doButton() and doReturnButton(). I do not thing this is what the OP wants, although the question is not clear on this regard. Commented Feb 9, 2016 at 20:52