You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<Arduino.h>
#include<BleGamepad.h>
BleGamepad bleGamepad;
voidsetup()
{
Serial.begin(115200);
Serial.println("Starting BLE work!");
bleGamepad.begin();
// The default bleGamepad.begin() above enables 16 buttons, all axes, one hat, and no simulation controls or special buttons
}
voidloop()
{
if (bleGamepad.isConnected())
{
Serial.println("Press buttons 5, 16 and start. Move all enabled axes to max. Set DPAD (hat 1) to down right.");
bleGamepad.press(BUTTON_5);
bleGamepad.press(BUTTON_16);
bleGamepad.pressStart();
bleGamepad.setAxes(32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767);
bleGamepad.setHat1(HAT_DOWN_RIGHT);
// All axes, sliders, hats etc can also be set independently. See the IndividualAxes.ino exampledelay(500);
Serial.println("Release button 5 and start. Move all axes to min. Set DPAD (hat 1) to centred.");
bleGamepad.release(BUTTON_5);
bleGamepad.releaseStart();
bleGamepad.setHat1(HAT_CENTERED);
bleGamepad.setAxes(0, 0, 0, 0, 0, 0, 0, 0);
delay(500);
}
}
- https://github.com/T-vK/ESP32-BLE-Mouse
- https://github.com/T-vK/ESP32-BLE-Keyboard
The text was updated successfully, but these errors were encountered:
https://amzn.to/4fFGUtL
https://www.youtube.com/watch?v=zOuCZpH0Dqg&t=305s
The text was updated successfully, but these errors were encountered: