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

LIbray Size #187

Open
saulc opened this issue Sep 3, 2022 · 3 comments
Open

LIbray Size #187

saulc opened this issue Sep 3, 2022 · 3 comments

Comments

@saulc
Copy link

saulc commented Sep 3, 2022

I used this to convert one of my project from usb hid to ble. its working great but the big problem is the compilation size is
over 80% (~1066721 bytes) on a feather v2 esp32.

Which means I can't even include the sleep or even wifi lib to disable it and reduce power use.
current battery life on 600ma is bad.

Anyway to do a more lightweight version?

@ekoslav
Copy link

ekoslav commented Sep 3, 2022

Have you tried different partition scheme?

2022-09-03 14_50_41-ESP32_4x4MatKBD_SPIFS _ Arduino 1 8 19

@saulc
Copy link
Author

saulc commented Sep 3, 2022

Thanks! it seemed weird to hit the memory limit on this thing...I only had 2 options for my board
Screen Shot 2022-09-03 at 12 40 45 PM

1075517 bytes (51%) - > 1454461 bytes (69%) with wifi disabled!

Nice work on the library. switching from hid keyboard was just find/replace and then add a device name and update the battery %.

Now that I think about it is there any way to show charging or low battery?

@T-vK
Copy link
Owner

T-vK commented Sep 4, 2022

Check the Readme for NimBLE-Mode.

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

3 participants