Created
October 9, 2023 11:28
-
-
Save pureexe/ffeea3c1884ae353a0d5a7792d8f4b20 to your computer and use it in GitHub Desktop.
Key mapping activation for ROG Game Genie using ESP32
This file contains hidden or 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
| // 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