Skip to content

Instantly share code, notes, and snippets.

@erfg12
Last active December 10, 2020 18:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save erfg12/8982bc44586ac5c0584f730c2f6da2a3 to your computer and use it in GitHub Desktop.
// 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