-
-
Notifications
You must be signed in to change notification settings - Fork 938
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
WIP : Test resource loading from external memory #1226
Conversation
i would like to check it, but there are some issues with ITD for me: for some reason it can not read battery characteristic on 2 setups (one is on VM, and second is baremetal setup), so i can't start "itgui" beacause of that. is there a catch with ITD (or linux in general) why it fails with BLE battery characteristic? |
Is this a problem you're seeing only with this PR or generally? I've just tested this PR and itd reads the battery level just fine for me. Have you updated itd recently? As far as this PR, the digital watchface background worked fine, the infineat font worked on the first try but the icon was missing, the G7710 font failed to load each time and on the 2nd try of infineat, the font also failed to load. The files were all uploaded in the same manner using itd, no errors reported and the file sizes match so I'm not sure what's going on. |
Those screen shots look like lvgl memory is running low. |
i had same symptoms with G7710 PR because of memory leak caused by lv_style usage :) |
for me, it is general issue (not related to this PR or InfiniTime released versions)... i hoped, since you are using ITD and it works for you, and i can't find useful info about issues with accessing only some GATT characteristics, hoped that's a trivial issue not even worth to mention in the web :) |
@ITCactus On my setup, ITD sometimes fails at connecting with my PineTime, with no obvious reasons. Generally, I just remove the BLE address (using bluetoothctl) and re-pair and it works again. @kieranc I observed the same behavior on my PineTime after 2-3 days : the fonts in G7710 were garbled. I guess that LVGL couldn't allocate enough memory for the font, so the font was not loaded and it displays random data from RAM... |
for the reference, just discovered another app for PineTime BLE FS: unfortunately for me, when i try to upload some file on my pinetime (no matter if it's InfiniTime 1.8 or 1.10), the pinetime just reboots. but maybe that alternative app will be useful for someone :) |
Resource support has been added, so I think this can be closed. |
WARNING This branch contains experimental code that has not been thoroughly tested. Use it at your own risks! WARNING
This PR contains the code from this comment : a modified version of the digital watchface that displays a picture in background, Infineat and G7710. I modified the code from those PRs so that resources (fonts and pictures) are read from the external memory.
resources.tar.gz
I pushed this code so developers and contributors can test it and, evaluate performances and provide feedback. See comments in #321 for more info.
To use this branch, first upload the resources files (.bin files extracted from resources.tar.gz) to the external memory of the PineTime using the BLE FS API. ITD implement this API.
Then flash this branch to your PineTime and test the new watchfaces (digital, infineat and G7710).