/GIMX Power On OG Xbox .c Secret
Last active
December 10, 2020 18:45
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use GIMX.exe with argument -x to power on OG Xbox console. Requires Yellow wire power mod. | |
// GIMX core/controller.c | |
static int adapter_power_ogxbox(int adapter) | |
{ | |
s_packet packet = { .header = { .type = BYTE_XPOWER, .length = 0 }, .value = { } }; | |
int ret = adapter_write_timeout(adapter, &packet); | |
return ret; | |
} | |
// GIMX core/args.c in "int args_read(int argc, char *argv[], s_gimx_params* params)" | |
case 'x': | |
adapter_power_ogxbox(0); | |
break; | |
// GIMX-firmwares adapter_common.c in "static inline void handle_packet(void)" | |
case BYTE_XPOWER: // Teensy 2.0 port 5 is near the other side of the USB port. | |
PORTD |= (1 << 5); | |
PORTD &= ~(1 << 5); | |
Serial_SendByte(1); | |
break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment