PS4 LED Off, 10% Pwr Red LED, and Off function
Simple script that disables the PS4 controller's LED until the battery reaches 10%. This script also allows you to turn off your PS4 controller by pressing: Touchpad + Share
|
RATE
|
- Code: Select all
main {
set_led(LED_1, 0);
set_led(LED_2, 0);
set_led(LED_3, 0);
set_led(LED_4, 0);
if (get_val(PS4_SHARE) && get_val(PS4_TOUCH)) killWireless();
if (get_battery() < 1 && get_controller() == PIO_PS4) set_led(LED_2, 1);
}
// Combos.
// Functions.
function killWireless () {
turn_off();
}