-
Notifications
You must be signed in to change notification settings - Fork 53
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
Library too large for smaller boards #62
Comments
yeah not surprising, its a complex library |
Carter was good enough to play with me on this tonight (as was Dan earlier). Goal was to make a zero-solder Head Mouse using just the QTPy and the BNO055 Stemma QT board. We got it working. I built a custom .UF2 with HID, BusDevice, and Register Frozen in and lots of features disabled. Here's the relevant part of mpconfigboard.mk:
With that in place, we still didn't have enough RAM for the library so Carter pulled out the custom Struct classes that were wrapping the values. The BNO055_I2C class (in this hacked version) worked just like the _UART version and read the registered, formatted them and sent them. It worked well, but still won't fit in the stock .UF2 as built for the QTPy. For my (short term demo) purposes, this is a fine hack, and I love that I have a head mouse I can show in my presentation tomorrow (with no soldering!). However, I do have two thoughts:
I'll continue to work with Carter to see where this ends up - just wanted to add to the issue & say thanks. |
fork/branch ref FWIW: nothing fancy. just reverted to basic i2c xfers instead of using register classes. |
You also commented out all those constant declarations (which @dhalbert reminded me take a huge amount of memory for what they are). Perhaps those could move into a separate class like HID does. |
Just adding that I ran into this issue as well. Seems like the issue could just as well be "board too small for larger libraries". |
The text was updated successfully, but these errors were encountered: