StryderUK / BluetoothHID

ESP32 Bluetooth HID Arduino library with DualShock 4 example
Apache License 2.0
23 stars 4 forks source link

connected but don't work #3

Open fabriofabrio opened 1 year ago

fabriofabrio commented 1 year ago

hi ok, my esp il connettected with the ds4 , but color led don't change if I push the L or R analog

thi is esp logs:

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:1412 load:0x40078000,len:13400 load:0x40080400,len:3672 entry 0x400805f8 hal-cpu.c:211] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz Started

Started [ 1498][V][BluetoothHID.h:365] hid_device_search(): SCAN... [ 1507][V][esp_hid_gap.c:464] ble_gap_event_handler(): BLE GAP EVENT SCAN_PARAM_SET_COMPLETE [ 1512][V][esp_hid_gap.c:544] ble_gap_event_handler(): BLE GAP EVENT SCAN_START_COMPLETE [ 1512][V][esp_hid_gap.c:389] bt_gap_event_handler(): BT GAP DISC_STATE START [ 5355][V][esp_hid_gap.c:389] bt_gap_event_handler(): BT GAP DISC_STATE STOP [ 6511][V][esp_hid_gap.c:476] ble_gap_event_handler(): BLE GAP EVENT SCAN DONE: 3 [ 6512][V][BluetoothHID.h:368] hid_device_search(): SCAN: 0 results E (15529) BT_HIDH: Report Not Found: 1 mode: REPORT

fabriofabrio commented 1 year ago

Thank your for this library

fabriofabrio commented 1 year ago

solved!

I changed VID and PiD inside the DS4Controller.h

news values are extract connecting the controlles to windows pc, then open control pannel-> devices manager open bluetooth icon, then read value from controller