T-vK / ESP32-BLE-Keyboard

Bluetooth LE Keyboard library for the ESP32 (Arduino IDE compatible)
2.4k stars 402 forks source link

Hide Battery Level #144

Closed Maxim0x00k closed 2 years ago

Maxim0x00k commented 2 years ago

Hi everyone! Can you say how can i hide battery level on my Iphone. I know what i can change battery level with (setbatterylevel) but if i choose 0% it still show this photo_2022-01-27_17-09-19

T-vK commented 2 years ago

You'd have to remove it from the source code. At the moment there is no config option to remove it entirely.

Maxim0x00k commented 2 years ago

Thanks for the answer! Can you tell which lines are responsible for showing the battery ? Because if i don't use third paramiter (BleKeyboard bleKeyboard("Bluetooth Device Name", "Bluetooth Device Manufacturer", 100);) device shows me 100%. I guess that it is necessary to make changes to the "BleKeyboard.h" or "BleKeyboard.cpp"

T-vK commented 2 years ago

I'd look for all lines saying something about battery.

BG2CRW commented 2 years ago

you can set it 101(101~255), it will hide.