Introduction :

Controlling stuffs :
Have fun playing it with guys.
Hit that little cute thanks button if the post helped you :D
As we all know our Sony Xperia L has an awesome illuminating led's but according to the API provided by Sony it an be only controlled via the Illumination API in a fixed way of fading. But after roaming in root folders i found the files responsible for controlling led's via sysfs.Some Images : :
Note : All of the above things need the device to be rooted.
Controlling stuffs :
We have 3 LEDS to control : 1 Red 1 Blue 1 Green (RGB). We can use RGB to make desired colours, Video on this thing soon explaining possibilities of the use of LEDS.Now we can have developers code it in a synchronized loop to enable multiple effects
To turn on :
For Blue :For Green :
Code:
echo 255 > /sys/class/leds/led:rgb_blue/brightnessFor Red :
Code:
echo 255 > /sys/class/leds/led:rgb_green/brightnessTo turn off :
Code:
echo 255 > /sys/class/leds/led:rgb_red/brightness
For Blue :For Green :
Code:
echo 0 > /sys/class/leds/led:rgb_blue/brightnessFor Red :
Code:
echo 0 > /sys/class/leds/led:rgb_green/brightnessExample : Colour change effect
Code:
echo 0 > /sys/class/leds/led:rgb_red/brightness
Code:
echo 255 > /sys/class/leds/led:rgb_blue/brightness; sleep ; echo 255 > /sys/class/leds/led:rgb_green/brightness; sleep 1; echo 255 > /sys/class/leds/led:rgb_red/brightness; sleep 1;
Have fun playing it with guys.
Hit that little cute thanks button if the post helped you :D
Aucun commentaire:
Enregistrer un commentaire