Xbox - LED Changing Code

Post here basically any programming material that will help other programmers out.
Post Reply
User avatar
Grimdoomer
Admin
Posts: 1835
Joined: Sun Dec 09, 2007 9:09 pm

Xbox - LED Changing Code

Post 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.
Attachments
LED src.rar
LED SOurce Code
(967 Bytes) Downloaded 406 times
Don't snort the magic, we need it for the network.
User avatar
Dragonfire
Posts: 1328
Joined: Thu Feb 21, 2008 9:20 pm
Location: Michigan, USA
Contact:

Re: Xbox - LED Changing Code

Post by Dragonfire »

My modchip and xbmc does this, but cool anyways.. :p
Image
User avatar
Grimdoomer
Admin
Posts: 1835
Joined: Sun Dec 09, 2007 9:09 pm

Re: Xbox - LED Changing Code

Post by Grimdoomer »

Well it's more for people who want to learn how to program for the xbox.
Don't snort the magic, we need it for the network.
User avatar
Eaton
Posts: 608
Joined: Mon Apr 21, 2008 7:44 pm
Location: USA
Contact:

Re: Xbox - LED Changing Code

Post by Eaton »

Interesting... :)

I also recall seeing something like this in the YeloDebug dll as well.
Last edited by Eaton on Fri Nov 21, 2008 2:42 am, edited 1 time in total.
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Re: Xbox - LED Changing Code

Post 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
User avatar
Gary
Posts: 1946
Joined: Thu Feb 14, 2008 10:17 pm
Location: USA, FL
Contact:

Re: Xbox - LED Changing Code

Post 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?
User avatar
OwnZ joO
Posts: 1197
Joined: Sun Dec 09, 2007 4:46 pm

Re: Xbox - LED Changing Code

Post 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.
xxpenguinxx
Posts: 1974
Joined: Sun Jan 27, 2008 4:50 am

Re: Xbox - LED Changing Code

Post 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.
DemonicSandwich wrote:See that? You see that how it is highlighted down here but it's not highlighted right there? Ah, I guess that's what I get for pirating it.
In Soviet Russia, DS touches you. Say it again and I'll do more than touch. ~DS -Oh baby
A cat was licking itself to the sound of potato chips.
KIWIDOGGIE
Posts: 72
Joined: Sat Jan 19, 2008 1:32 am
Location: On a Grav Lift
Contact:

Re: Xbox - LED Changing Code

Post by KIWIDOGGIE »

Programming for the Xbax 1 is a bizatch, but nice work.
99% Of the Xbox Scene are retards.
Xbox Scene wrote:All Hail Jester!
Post Reply