Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help refactoring code to support native bluetooth on ESP32 boards #572

Open
jeffmikels opened this issue Dec 2, 2020 · 5 comments
Open

Comments

@jeffmikels
Copy link

This library is exceptional for using bluetooth dongles with the USB shield, but there are other ways to get bluetooth functionality with an Arduino. ESP32 boards have it built in, for example.

The BT HID libraries would be excellent if they could be abstracted away from their dependency on the USB side of things. Is anyone able to help me fork and refactor the BT libraries to make them work without the USB Host Shield?

@ddesign
Copy link

ddesign commented Dec 15, 2020

Also something I would be interested in. Have recently bought an ESP32 for it's built in Wifi and BT specifically for a Mod using game controllers. Am not exactly proficient at C yet so wouldn't want to offer my services specifically for this. I have found this: https://gitlab.com/ricardoquesada/bluepad32 which may be helpful for you, but am struggling to apply (compile) it myself. Am waiting on a new delivery of ESP32 boards as I fear I have fried my last one :)

@Lauszus
Copy link
Collaborator

Lauszus commented Feb 7, 2021

Would be cool. I might do it at some point, but won't promise anything.

@KL2808
Copy link

KL2808 commented May 20, 2021

Would be cool. I might do it at some point, but won't promise anything.

This really would be an awesome feature. Especially for those using an ESP32 (just like me). :)

@vlinder
Copy link

vlinder commented Aug 21, 2022

Was looking for this, but I guess i'll have to use another library for now.

Would it be possible/desirable to add a small shim in between? Perhaps using the BTD as an interface for it? This probably would not need any refactoring. Just an extra implementation of BTD?

Adapted the example with some pseudo-code to explain.

//USB Usb;
//BTD Btd(&Usb);
BTD Btd = ESP32BT(); // something like this?
PS5BT PS5(&Btd, PAIR);

I haven't coded C in over a decade. How much of a lift would this be? Possible?

@Lauszus
Copy link
Collaborator

Lauszus commented Sep 5, 2022

@vlinder yes it's differently possible, but would require quite a bit of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants