mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 17:32:18 +00:00
![]() * Toggle Blutooth with Fn+b shortcut Problem: As many are aware, ESP32 devices are known for their high power consumption. For instance, the Heltec ESP32 V3 draws around 110mA when powered on with the screen active and connected to a phone via Bluetooth. The Bluetooth radio alone is responsible for approximately 50mA of that consumption. For keyboard-based standalone devices, which rarely need Bluetooth other than for changing settings, users were forced to keep Bluetooth on regardless of necessity. There was no way to toggle Bluetooth on or off without physically connecting the device to a computer via serial or using the admin channel, which required another node for access. Solution: I implemented a new feature that allows users to turn off Bluetooth on keyboard devices by pressing Fn+b and turn it back on when needed. This enhancement significantly improves power efficiency for these devices. Result: With Bluetooth off, the device now consumes only 55mA. When combined with Power Save mode, the consumption can drop as low as 11mA, a substantial reduction from the previous 110mA. Users can still easily reconnect to a phone using the shortcut when necessary, offering greater flexibility and extended battery life. * Remove 1 reboot at least. I was able to prevent a reboot using the disableBluetooth(); command, current tested at 47-55mA, it doesn't require a reboot to turn off, but it does need reboot to turn back on. * Update CannedMessageModule.cpp |
||
---|---|---|
.. | ||
BBQ10Keyboard.cpp | ||
BBQ10Keyboard.h | ||
cardKbI2cImpl.cpp | ||
cardKbI2cImpl.h | ||
ExpressLRSFiveWay.cpp | ||
ExpressLRSFiveWay.h | ||
InputBroker.cpp | ||
InputBroker.h | ||
kbI2cBase.cpp | ||
kbI2cBase.h | ||
kbMatrixBase.cpp | ||
kbMatrixBase.h | ||
kbMatrixImpl.cpp | ||
kbMatrixImpl.h | ||
LinuxInput.cpp | ||
LinuxInput.h | ||
LinuxInputImpl.cpp | ||
LinuxInputImpl.h | ||
RotaryEncoderInterruptBase.cpp | ||
RotaryEncoderInterruptBase.h | ||
RotaryEncoderInterruptImpl1.cpp | ||
RotaryEncoderInterruptImpl1.h | ||
ScanAndSelect.cpp | ||
ScanAndSelect.h | ||
SerialKeyboard.cpp | ||
SerialKeyboard.h | ||
SerialKeyboardImpl.cpp | ||
SerialKeyboardImpl.h | ||
TouchScreenBase.cpp | ||
TouchScreenBase.h | ||
TouchScreenImpl1.cpp | ||
TouchScreenImpl1.h | ||
TrackballInterruptBase.cpp | ||
TrackballInterruptBase.h | ||
TrackballInterruptImpl1.cpp | ||
TrackballInterruptImpl1.h | ||
UpDownInterruptBase.cpp | ||
UpDownInterruptBase.h | ||
UpDownInterruptImpl1.cpp | ||
UpDownInterruptImpl1.h |