You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.......
The text was updated successfully, but these errors were encountered:
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.......
The text was updated successfully, but these errors were encountered: