adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
606 stars 492 forks source link

Ble gamepad #688

Closed hathach closed 3 years ago

hathach commented 3 years ago

This PR based on and supersede #622 to add BLEHidGamepad support as separated class from BLEHidAdafruit and blehid_gamepad example. which is inspired by @nekuneko exellent PR support for gamepad for both usb and ble.

example is tested on android and windows. Unfortunately I don't know how to test it on iOS/iPad, maybe Apple require an MFi licence or something. If anyone know how to test this out, please let me know.

Huge thanks to @nekuneko for series of gamepad PR for usb and ble that help to implement this.

Note: also take chance to rename example from hid to blehid (to distinguish from usb hid). Also tweaking existing example. close #622 , fix #228, fix #36

ThomasAtBBTF commented 2 years ago

Will there also be an CircuitPython equivalent? And a sample? I would be very interested in that.

EtienneGameSeed commented 1 year ago

Hello, I've tried the BLE GamePad example on an NRF52840 Feather Express and on 2 different Windows 10 portable PCs with integrated Bluetooth. On both PCs is behaves the same way:

I have tried with an ESP 32 and the ESP32 BLE gamepad library, and it works (no need to delete the device when power off/on), so the problem is not comming from the PCs Bluetooth stacks.