It is defined as "int ksceLedSetMode(int led, int mode, void *led_configuration);" https://wiki.henkaku.xyz/vita/ScePower
The function seems similar to sceLedSetMode function in PSP but LEDS are different, so trying to find the correct arguments for Vita. for psp: http://uofw.github.io/uofw/group__LED.html
Argument led:
2 seems to control the blue light on home button, by passing "ksceLedSetMode(2, 0, NULL); home button stops glowing till a next event lights it, by passing "ksceLedSetMode(2, 1, NULL); home button begins to glow, by passing "ksceLedSetMode(2, 2, NULL); home button blinks rapidly. Unfortunately i couldn't find the argument for red light on home button.
Argument "mode" seems same as PSP:
[spoiler]enum SceLedModes
The possible LED control commands.
Enumerator:
SCE_LED_MODE_OFF
Turn a LED OFF.
SCE_LED_MODE_ON
Turn a LED ON.
SCE_LED_MODE_BLINK
Set a blink event for a LED.
SCE_LED_MODE_SELECTIVE_EXEC
Register LED configuration commands and execute them. Its use is not recommended, as it is still not completely known how that mode works.[/spoiler]
led configuration seems same as PSP too, though i haven't messed with it. It needs confirmation:
http://uofw.github.io/uofw/structSceLed ... ation.html
ERROR CODES:
SCE_ERROR_INVALID_LED: Error code 0x803F0140 if led>7
SCE_ERROR_INVALID_MODE: Error code 0x803F0141 if mode>4 or ((mode == 4) && (led != 2))
Advertising