Skip to content

Instantly share code, notes, and snippets.

@pureexe
Created October 9, 2023 11:28
Show Gist options
  • Select an option

  • Save pureexe/ffeea3c1884ae353a0d5a7792d8f4b20 to your computer and use it in GitHub Desktop.

Select an option

Save pureexe/ffeea3c1884ae353a0d5a7792d8f4b20 to your computer and use it in GitHub Desktop.
Key mapping activation for ROG Game Genie using ESP32
// Please install these library first
// ESP32-BLE-GamePad - https://github.com/lemmingDev/ESP32-BLE-Gamepad
// NimBLE - https://github.com/h2zero/NimBLE-Arduino
#include <BleGamepad.h>
BleGamepad bleGamepad = BleGamepad("ESP32 - Stadia Controller");
void setup()
{
BleGamepadConfiguration bleGamepadConfig;
bleGamepadConfig.setVid(0x18d1);
bleGamepadConfig.setPid(0x9400);
bleGamepad.begin(&bleGamepadConfig);
}
void loop()
{
if (bleGamepad.isConnected())
{
delay(60000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment