Button

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: photomankc , created: 2013-04-04 | updated: 2013-04-04

Simple debounced buttons for propeller projects. There is a single-shot press, a repeatable press, and timed press function. These are all foreground functions so no extra cogs needed and they were intentionally kept simple. See code comments for details.

 

Original File Upload
AttachmentSize
ButtonDemo2_-_Archive.zip20.26 KB

Comments

[originally posted by Anonymous on 2011-02-02 23:43:09] Thank you! Nice, simple and effective.

Hello, 

I have 'played' with your Button object, and want to use it in my application. One of the actions I want to have, is short and long pressed ractions

How can i make this, with your button objects:

- pressed button1 short (< 0.5 sec) reaction short

- pressed button1 long (> 1 sec) reaction long, also when you continuis the button pressed

thanks for input,

Regards, 

Rob van den Berg