Explore Plans
Mobile menu Close menu
GraspIOGraspIO

Flash RGB LED

This action will alternately display two colors for the selected duration/delay on the LED .

Developer info

API endpoint slug
graspio.flash
Filter code method
Graspio.flash.skip(string?: reason)
Runtime method
runAction("graspio.flash", {})

Action fields

Board ID Dropdown list

Label
Board Name
Helper text
Select the board for the action to run on.
Slug
board_id
Required
true
Can have default value
false

Repeat Dropdown list

Label
Repeat
Helper text
Set the number of flash cycles. 1 cycle is a sequence of LED in color 1 followed by color 2.
Slug
repeat
Required
true
Can have default value
true
Filter code method
Graspio.flash.setRepeat(string: repeat)

Led color 1 Dropdown list

Label
LED Color 1
Helper text
Set the first color for the LED.
Slug
led_color_1
Required
true
Can have default value
true
Filter code method
Graspio.flash.setLedColor1(string: ledColor1)

Delay Dropdown list

Label
Delay
Helper text
Set the LED ON duration for each color.
Slug
delay
Required
true
Can have default value
true
Filter code method
Graspio.flash.setDelay(string: delay)

Led color 2 Dropdown list

Label
LED Color 2
Helper text
Set the second color for the LED.
Slug
led_color_2
Required
true
Can have default value
true
Filter code method
Graspio.flash.setLedColor2(string: ledColor2)