lemmingDev / ESP32-BLE-Gamepad

Bluetooth LE Gamepad library for the ESP32
Other
1.09k stars 181 forks source link

GamePad with 2 battery level #215

Open Gabry11 opened 7 months ago

Gabry11 commented 7 months ago

hi, it's possible to view 2 battery level info like a couple of ear buds?

lemmingDev commented 7 months ago

Don't really see a use case What would you use it for?

Gabry11 commented 7 months ago

I'm creating two twin gamepads, inspired by the old Nintendo Wii controllers. Each gamepad, right and left, has its own dedicated battery and processor. Therefore, the controllers communicate with each other, but only one connects to the PC via Bluetooth Low Energy (BLE), simulating the inputs of both controllers. I would like to be able to monitor the battery level of both gamepads, similar to how it's done with Bluetooth in-ear headphones.

LeeNX commented 2 months ago

@Gabry11 can you see both earbuds in something like the Bluetooth controller and each battery level independent of each other? Did you need to install software to get this info? I don't think I have seen any HID descriptors for additional batteries.

Maybe if you got the HID report descriptors, we could see how it was done.

LeeNX commented 2 months ago

Was thinking about how would you expect this info to be present by the host OS? We can add almost any services and/or characteristic, but most host OSs might not present this info to you, then reason I ask if you had seen this with an App or if your host OS did display this info and what it would look like. I could see how this could be present on Android with something like the Bat ON App, which now looks like it has been abandoned, bugger. Here is a video - BatON for Android

I could see how that might be useful on something like RetroPi or something, but now I am getting a little carried away.