Hello,
I'm using ESP32 BLE Gamepad library, and i cannot see ESP32 in bluetooth manager on my linux mint or android phone. I am currently using ESP32C3 supermini, but i also tried ESP32 Wroom 32D, which was already tried with connecting ps5 controller to esp32 (with this library), where everything was working properly.
Now, I don't know where is the problem, I am using the example "Gamepad" from the library:
#include <Arduino.h>
#include <BleGamepad.h>
BleGamepad bleGamepad;
void setup()
{
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
}
void loop()
{
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 example
delay(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);
}
}
and it just don't work. This is what serial is printing at start:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:4832
load:0x40078000,len:16460
load:0x40080400,len:4
load:0x40080404,len:3504
entry 0x400805cc
Starting BLE work!
and thats all I can probably give. If you need additional info, I will try to answer it.
Thanks in advance.