Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle and Momentary Buttons #15

Open
rjkorn opened this issue May 4, 2016 · 2 comments
Open

Toggle and Momentary Buttons #15

rjkorn opened this issue May 4, 2016 · 2 comments

Comments

@rjkorn
Copy link

rjkorn commented May 4, 2016

Feature request Please!

I'd love to see 3 additional button types...

Toggle-Button

Toggle-Buttons are used to Toggle the state of a digital output pin. The command creates one button inside the interface labelled as specified. For example, the following command creates a button to Toggle pin number 6 labelled 'Flip-It':

ui.toggle(6,'Flip-It')

Pulse-High-Button

Pulse-High-Buttons are used to momentarily raise the state of a digital output pin. The command creates one button inside the interface labelled as specified. The initial state should be set manually by the user in their setup code. For example, the following command creates a button to raise pin number 6 high for 300 milliseconds labelled 'Beep':

ui.pulsehi(6,300,'Beep')

Pulse-Low-Button

Pulse-Low-Buttons are used to momentarily lower the state of a digital output pin. The command creates one button inside the interface labelled as specified. The initial state should be set manually by the user in their setup code. For example, the following command creates a button to drop pin number 6 low for 500 milliseconds labelled 'Flash':

ui.pulselo(6,500,'Flash')

I'm going to try the toggle button myself but it may not be pretty.......

@marcoschwartz
Copy link
Owner

Great ideas! This is something I am already starting to implement for the cloud dash of aREST, so it should be easy to do here as well :)

@firesprite78
Copy link

Very cool project and with this features it was to be PRICELESS!
Wait for update((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants