Multi-colour LED Development

Search This thread

Evostance

Senior Member
Nov 27, 2008
1,511
332
www.greghesp.com
OK guys, I emailed HTC about the LED and apparently it is a tri-colour LED

Dear XXX,

Thank you for contacting HTC.

Yes,it is a tri-color LED.

We don't support any software that directly controls it.

To send a reply to this message or let me know I have successfully answered your question log in to our ContactUs site using your email address and your ticket number XXXX.

Sincerely,

Bo

HTC


The aim of this being to get our LED to actual output any colour on the spectrum. The LED is capable of it, its just figuring out how to do it. The Desire Classic has the same LED yet they have Blue as one of their colours so we know its possible

Perhaps someone can try this within an app. See what we can get

To define your own color and pattern, define a value for the ledARGB field (for the color), the ledOffMS field (length of time, in milliseconds, to keep the light off), the ledOnMS (length of time, in milliseconds, to keep the light on), and also add "FLAG_SHOW_LIGHTS" to the flags field:

notification.ledARGB = 0xff00ff00;
notification.ledOnMS = 300;
notification.ledOffMS = 1000;
notification.flags |= Notification.FLAG_SHOW_LIGHTS;
 
Last edited:

Evostance

Senior Member
Nov 27, 2008
1,511
332
www.greghesp.com
Really? Maybe I did not pay enough attention, but I think I didn't see red on the DHD.

The directory /sys/class/leds has these sub-directories/symlinks:

amber
button-backlight
flashlight
green
keyboard-backlight
lcd-backlight

You can write a number to the brightness files therein, like

echo 1 >/sys/class/leds/amber/brightness
echo 1 >/sys/class/leds/green/brightness

Amber and green together is a bit more yellowish than amber alone.

Perhaps a place to start?
 

vinnieminnie

Senior Member
Nov 9, 2010
198
11
Amsterdam
A while ago, someone mentioned a second led, next to the proximity/light-sensor. He also made a pic of it, it was definately there. Maybe you could try to incorporate that led in this project as well.
 

JamesBarnes

Senior Member
Jul 17, 2009
378
28
A tri colour LED does not mean it is capable of full spectrum colour.

It means the LED unit has 3 Diodes, each a different colour (probably tied to a common ground). To be able to reproduce all (most) colours the 3 LEDs need to be Red, Green and Blue.

In this instance however, it seems like the 3 colours are Red, Orange and Green.

The hardware controller likely is not capable of adjusting the brightness to each individual diode.
 
Last edited:

Evostance

Senior Member
Nov 27, 2008
1,511
332
www.greghesp.com
The LED is the same as the one in the Desire Classic which can produce Blue ;)

I did ask HTC for clarification and where to find the files to edit this. They just replied with "HTC does not offer development support" lol
 

DN41

Senior Member
Nov 17, 2009
971
80
A while ago, someone mentioned a second led, next to the proximity/light-sensor. He also made a pic of it, it was definately there. Maybe you could try to incorporate that led in this project as well.

thats wrong..it was the proximity sensor itself. digital cameras are able to make infrared rays visible (normally white).
take your dhd, go into camera, place your tv remote in front of it and press some buttons. you should see a white "dot" on your dhd screen.

+1 for the developement ;)

DN41
 

vinnieminnie

Senior Member
Nov 9, 2010
198
11
Amsterdam
thats wrong..it was the proximity sensor itself. digital cameras are able to make infrared rays visible (normally white).
take your dhd, go into camera, place your tv remote in front of it and press some buttons. you should see a white "dot" on your dhd screen.

+1 for the developement ;)

DN41

Even though this would be a clever explanation, that isn't the case. I found the video I was reffering to, here it is.
 
  • Like
Reactions: RaiderX303

Evostance

Senior Member
Nov 27, 2008
1,511
332
www.greghesp.com
OK

HTC are being idiots. They won't tell me if a the Tri-Color LED consists of RGB or not, even though I said im trying to develop a LED notifier.

Can someone else please try and ask them. Don't think they liked me ever since I asked about the system files lol
 

DN41

Senior Member
Nov 17, 2009
971
80
yeah there was a discussion some days ago..
it's definitely the proximity sensor!

DN41
 

perern

Senior Member
Feb 15, 2009
453
20
Matrand
thats wrong..it was the proximity sensor itself. digital cameras are able to make infrared rays visible (normally white).
take your dhd, go into camera, place your tv remote in front of it and press some buttons. you should see a white "dot" on your dhd screen.

+1 for the developement ;)

DN41

that's what i usually do to check controllers, and everyone wonders if i'm crazy
 

bergfex

Senior Member
Sep 16, 2010
206
105
Hagenberg
one idea can be to disable the LED support for PM8053 and see if the notification LED is still working.

If this shows that the notification LED is driven by the PM8053, you can put some printk into the leds-pm8058.c file to see if the RGB mode is used.

...
 

ynischa

Senior Member
Nov 5, 2010
81
8
Even though this would be a clever explanation, that isn't the case. I found the video I was reffering to, here it is.


That is probably either the proximity sensor or the light sensor (the one that adjusts auto brightness).

Edit: After some extensive testing using the finger-over-sensor-test, I have concluded that the light from the video is coming from the proximity sensor and that the other sensor (the rightmost one) is the brightness sensor.
I really don't believe that it is another LED.
 
Last edited:

Rodomar705

Member
Nov 9, 2010
36
6
Xiaomi Poco F3
Here we are:

Ciao xxxx, Grazie per aver contattato il nostro supporto tecnico. Il nostro obiettivo e' offrirle un servizio di alta qualità e rispondere a tutte le sue domande. Recentemente ci ha scritto riguardo il led del Desire HD : di seguito La informiamo che i colori del lED disponibili sono il Verde, Rosoo e Rosso arancione , per sviluppare altri Led Le suggeriamo di visitare il sito www.htcdevelopers.com.

The led is red, green and orange.

Rodomar705.

Translation by Mod:
Hello xxxx, Thank you for contacting our technical support. Our aim 'to offer a high quality service and answer all your questions. Recently we wrote about led the Desire HD: Please note that the following LED colors available are Green, Orange and Red Roso, to develop other Led suggest you visit the site www.htcdevelopers.com.

Sent from my Desire HD using Tapatalk
 
Last edited by a moderator:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    thats wrong..it was the proximity sensor itself. digital cameras are able to make infrared rays visible (normally white).
    take your dhd, go into camera, place your tv remote in front of it and press some buttons. you should see a white "dot" on your dhd screen.

    +1 for the developement ;)

    DN41

    Even though this would be a clever explanation, that isn't the case. I found the video I was reffering to, here it is.