Page 1 of 1

Xbox - LED Changing Code

Posted: Fri Oct 17, 2008 10:27 am
by Grimdoomer
Well here is one of many snippets I will be releasing for programing on the Xbox. This is very simple code used to change the LED color.

The use is very simple:

Code: Select all

Red:
LED::SetXBOXLEDStatus(LED::LED_REGISTER_CYCLE0_RED | LED::LED_REGISTER_CYCLE1_RED | LED::LED_REGISTER_CYCLE2_RED | LED::LED_REGISTER_CYCLE3_RED);

Green:
LED::SetXBOXLEDStatus(LED::LED_REGISTER_CYCLE0_GREEN | LED::LED_REGISTER_CYCLE1_GREEN | LED::LED_REGISTER_CYCLE2_GREEN | LED::LED_REGISTER_CYCLE3_GREEN);
You can also look at the number sequences I found. Each number represents a different sequence:

Code: Select all

/* LED Info
* 0 - Clear, Red
* 1 - Clear, Red, Yellow
* 2 - Clear, Yellow, Red
* 3 - Clear, Yellow
* 4 - Clear, Green, Red
* 5 - Clear, Green, Red, Yellow
* 6 - Clear, Green, Yellow, Red
* 7 - Clear, Green, Yellow
* 8 - Clear, Red, Green
* 9 - Clear, Red, Yellow, Green
*/
Just add the header and source file to your project and call it by LED::SetXBOXLEDStatus
Enjoy.

Re: Xbox - LED Changing Code

Posted: Fri Oct 17, 2008 5:39 pm
by Dragonfire
My modchip and xbmc does this, but cool anyways.. :p

Re: Xbox - LED Changing Code

Posted: Fri Oct 17, 2008 6:13 pm
by Grimdoomer
Well it's more for people who want to learn how to program for the xbox.

Re: Xbox - LED Changing Code

Posted: Fri Oct 17, 2008 7:48 pm
by Eaton
Interesting... :)

I also recall seeing something like this in the YeloDebug dll as well.

Re: Xbox - LED Changing Code

Posted: Fri Oct 17, 2008 9:18 pm
by Click16
Penguin actually took the wires and swapped them to make the light red! :laff: so dat beats your code! lol not really cuz i could have screwed my LEDS

Re: Xbox - LED Changing Code

Posted: Fri Oct 17, 2008 10:59 pm
by Gary
You could easly do the same with a hammer...
Anyways, bot, How do I write apps for the xbox?
Do you create an XBE?

Re: Xbox - LED Changing Code

Posted: Fri Oct 17, 2008 11:13 pm
by OwnZ joO
Eaton wrote:Interesting... :)

I also recall seeing something like the in the YeloDebug dll as well.
That requires a connection to a debug xbox, this is code for an xbox application.

Re: Xbox - LED Changing Code

Posted: Sat Oct 18, 2008 2:18 am
by xxpenguinxx
Gjsdeath wrote:You could easly do the same with a hammer...
Anyways, bot, How do I write apps for the xbox?
Do you create an XBE?
You need Visual Studio .net 2003 which I have :hint hint:
You also need a debugged xbox and XDK which isn't hard to get if you look at the post your desktop thread and see who has the xbox neighborhood icon.

Re: Xbox - LED Changing Code

Posted: Sun Nov 09, 2008 10:10 pm
by KIWIDOGGIE
Programming for the Xbax 1 is a bizatch, but nice work.