LED and rumble functions
Provide visible or haptic status feedback while respecting controller support and current Zen function details.
Overview
Controller LED functions set, inspect, blink, and reset supported controller lights. PS4 lightbar helpers are Zen-only according to the official table.
Rumble functions inspect, set, block, and restore motor output. set_rgb and set_hsb belong to the separate Zen device LED API.
Key facts
- Core LED and rumble helpers are listed for Zen and Plus.
- get_ps4_lbar and set_ps4_lbar are Zen-only.
- set_rgb and set_hsb control the Zen device LED, not a controller light.
- block_rumble remains active until reset_rumble or script unload.
GPC syntax examples
Examples are intentionally small. Replace identifiers only with values documented for your target.
main {
if (event_press(XB1_A)) {
block_rumble();
}
}Functions, commands, and terms
Names below are catalog entries, not guessed signatures. Open the official sources for current parameter and return-value details.
set_ledfunction · Zen and PlusSets a controller LED state.
get_ledfunction · Zen and PlusGets a controller LED state.
set_ledxfunction · Zen and PlusBlinks a controller LED a selected number of times.
get_ledxfunction · Zen and PlusReports whether set_ledx is blinking an LED.
reset_ledsfunction · Zen and PlusReturns LED control to the console.
get_ps4_lbarfunction · Zen onlyGets a PS4 lightbar color channel.
set_ps4_lbarfunction · Zen onlySets the PS4 controller lightbar color.
get_rumblefunction · Zen and PlusReturns a rumble motor's current value.
set_rumblefunction · Zen and PlusSets a rumble motor speed.
block_rumblefunction · Zen and PlusBlocks rumble signals from the console until reset.
reset_rumblefunction · Zen and PlusReturns rumble control to the console and clears a block.
set_rgbfunction · Zen onlySets the Cronus Zen device LED with RGB values.
set_hsbfunction · Zen onlySets the Cronus Zen device LED with HSB values.
Common mistakes
Treating set_rgb as a controller lightbar function.
Forgetting to reset blocked rumble.
Passing undocumented LED or rumble channel numbers.
Official GPC sources
Use these first-party references to confirm exact syntax and runtime behavior for your installed firmware and Studio version.
Related GPC references
Draw pixels, lines, rectangles, circles, characters, and strings with the official Zen OLED functions.
Input and outputController input and output functionsRead current, physical, and prior values; detect transitions; write outputs; and understand when script changes affect later reads.
Device APIsDevice and runtime functionsUse the verified runtime, slot, control-button, VM timing, polar output, Zen LED, and clamp device APIs.