Creates multifunctional push buttons for GPIO pins.
BUTTON :STD@BUTTON 0 Special Command|
BUTTON :STD@BUTTON 0 pressed 1x|
BUTTON :STD@BUTTON 0 pressed 2x|
BUTTON :STD@BUTTON 0 pressed 3x
Assigning commands to the button.
BUTTON[0]=D5,M0
Executes commands (1) - (9), one after each button press.
BUTTON[0]=D5,M1,1000
Executes commands (1) - (9) when the button is released.
Executes command (0) if the button is held down for a long time (1000ms).
BUTTON[0]=D5,M2,1500
Executes commands (1) - (9) repeatedly while the button is held down, every 1.5 seconds.
Executes command (0) when the button is released.
BUTTON[0]=D5,M3,800
Command (1) - (9) is selected based on the number of presses. After 800ms of inactivity, it is executed.
Command (0) is executed after the selected command.
BUTTON[0]R
Command (1) is executed on the next button press.