xboxscene.org forums

Author Topic: Led Values?  (Read 84 times)

SamSam

  • Archived User
  • Jr. Member
  • *
  • Posts: 76
Led Values?
« on: August 05, 2003, 12:53:00 PM »

I found a site where they tell how to change the LED color of the X-box but they did'nt tell what are the values for the differents colours. Did Someone know what are these values.

P.s. the site is :  http://gpp.netfirms....heLEDColor.html
Logged

The unProfessional

  • Archived User
  • Hero Member
  • *
  • Posts: 679
Led Values?
« Reply #1 on: August 05, 2003, 01:00:00 PM »

The LED is green and red... green + red = orange.  It's a 3-pin LED.... and there are two of them.

I just replaced both LED's with blue LED's.... looks nice

If you mean something else by "Values for different colours", let me know =]
Logged

SamSam

  • Archived User
  • Jr. Member
  • *
  • Posts: 76
Led Values?
« Reply #2 on: August 05, 2003, 01:12:00 PM »

The values i want to know are for programming the change of the led color.

For exemple The value 'a' make the led flash reg and green, 'b' is red and orange ...
Logged

LinksAwakening

  • Archived User
  • Sr. Member
  • *
  • Posts: 499
Led Values?
« Reply #3 on: August 05, 2003, 01:20:00 PM »

QUOTE (The unProfessional @ Aug 5 2003, 09:00 PM)
The LED is green and red... green + red = orange.  It's a 3-pin LED.... and there are two of them.

I just replaced both LED's with blue LED's.... looks nice

If you mean something else by "Values for different colours", let me know =]

Same here (with the Blue LEDs)... Looks very nice...

Anyway, by "Values", I think he is refering to changing the LED colors by software (like Avalaunch does, or so I've heard)...

He is refering to this code:

CODE

//Comments by LinksAwakening
extern "C"
{
   extern VOID WINAPI HalWriteSMBusValue(BYTE, BYTE, BOOL, BYTE);
}


void ChangePowerLEDColor( unsigned char LEDStatus )
{
//Looks to me like this area is where the actually "design" of the flashing and colors is laid out

   HalWriteSMBusValue( 0x20, 0x08, 0, LEDStatus ); //i.e. This might equal a Red/Green flash
   Sleep( 100 ); //...Pause Period (100 milli-seconds?)
   HalWriteSMBusValue( 0x20, 0x07, 0, 1 );//Flash/stable color/combo after pausing
}



I don't really understand all of that code... but I'm sure someone does...
Logged

Mordenkainen

  • Archived User
  • Sr. Member
  • *
  • Posts: 447
Led Values?
« Reply #4 on: August 05, 2003, 09:27:00 PM »

Don't have time to try it right now, but I would say that would be the best way. I don't think you could hurt the box by playing with the values.

From the code I would say the color is controled by the 07 / 08 parameter.

Morden.
Logged

mnemonix

  • Archived User
  • Newbie
  • *
  • Posts: 6
Led Values?
« Reply #5 on: August 08, 2003, 03:33:00 PM »

CODE

extern "C"
{
extern VOID WINAPI HalWriteSMBusValue(BYTE, BYTE, BOOL, BYTE);
}

enum LEDColor{
   LC_GREEN=0x1,
   LC_RED=0x10,
   LC_ORANGE=(LC_GREEN|LC_RED)
};

void setLEDColors(LEDColor a,LEDColor b,LEDColor c,LEDColor d)
{
   unsigned char status=d+(c<<1)+(b<<2)+(a<<3);
   HalWriteSMBusValue(0x20,0x08,0,status); // set led sequence
   Sleep(100);
   HalWriteSMBusValue(0x20,0x07,0,1); //enable custom mode
}
Logged