Jump to content

Recommended Posts

Guest Rdogg112
Posted (edited)

I've been looking for how to control the LEDs on our blade for quite some time now, and, since I didn't find anything, I decided to try myself and succeeded.

Heres the How-to:

1. Install the Android SDK(Or just ADB)

2. Run "adb shell"

3. Run any of these commands:



Activate Backlight-leds(White): echo 255 > /sys/class/leds/button-backlight/brightness

Deactivate(White)		echo   0 > /sys/class/leds/button-backlight/brightness


Activate Red leds:	 echo 255 > /sys/class/leds/red/brightness

Deactivate		 echo	 0 > /sys/class/leds/red/brightness

Blink:			 echo	1 > /sys/class/leds/red/blink

			 echo	 0 > /sys/class/leds/red/blink


Activate Green leds:	 echo 255 > /sys/class/leds/green/brightness

Deactivate		 echo	 0 > /sys/class/leds/green/brightness

Blink:			 echo	 1 > /sys/class/leds/red/blink

			 echo	 0 > /sys/class/leds/red/blink

Just a little tip: If you want to control the green or red led, you have to "deactivate"(Turn off brightness) of the White ones..

Edited by Rdogg112
Guest shmizan
Posted

never a yellow.

always been red, another shade of red and green

Guest Rdogg112
Posted

Yeah, wbaw told me that the Amber/yellow is just Red + Green

Guest eLJay
Posted

If its RGB then theoretically it should run this...?

Activate Blue leds: echo 255 > /sys/class/leds/blue/brightness

Deactivate echo 0 > /sys/class/leds/blue/brightness

Blink: echo 1 > /sys/class/leds/blue/blink

echo 0 > /sys/class/leds/blue/blink

Guest Rdogg112
Posted

If its RGB then theoretically it should run this...?

Activate Blue leds: echo 255 > /sys/class/leds/blue/brightness

Deactivate echo 0 > /sys/class/leds/blue/brightness

Blink: echo 1 > /sys/class/leds/blue/blink

echo 0 > /sys/class/leds/blue/blink

It's not an RGB Led, there are only 3 seperate LEDs, White, Green and Red.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.