-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Better page breaking - particularly for the first section #7
Comments
That's interesting - how did you make it do that? Was it after the device had gone to sleep and woken up? It's supposed to save the current state of the display so when it wakes up it knows how to update the screen - I wonder if that's not working when using spiffs. |
That's done simply loading the book with Spiffs and just going to next page till that one. But you can also experience it when going backwards. |
Very weird managed to recreate it after going into deep sleep with SPIFFS. Makes me think that the EPD hydrate and dehydrate is not working properly. There's a clear screen at the start of the page render, but if the back buffer has not been restored properly it won't know to update the area of the screen that has old content in it. |
For some reason the code in
|
This may help - b6a0b68 I suspect that a move to LittleFS would improve things considerably. From what I can see SPIFFS is struggling to find free space for the file so although it opens ok, it doesn't actually write any data. I've got it retrying on failure and also bumped up the SPIFFS garbage collection count. I'll add more graceful handling when it does fail so that it gets back into a sensible state. |
I've added this issue to move over to LittleFS - #13 |
Great. When I find some time I will fork this and try to add touch. Also like I commented up there, to save last page read, will be a great usability help so you can keep on reading after deepsleep without need to navigate again to that page. |
I'll take a look at this as it should be working. |
Additionally and not strictly related to this issue, there are some book cover images that are not being loaded (Maybe it's because I'm on SPIFFS?) Other than that the book is being opening correctly and I can read it. |
I've added an issue for the missing cover image - #14 It may be that the image is not compatible - progressive jpegs are not supported. But I'll investigate tonight. |
Fixed |
About #14 please don't close so fast before an additional test For others now the cover is appearing and working correctly. Any idea why it hangs with this particular book? |
Updated a comment on issue #14 - the book has some invalid utf-8 sequences which was crashing the font code in epdiy - that's now fixed upstream so should work if the git submodules update properly (having some issues with my understanding of git submodules...) |
Ah now. Great you are doing it good, you just have to update it locally and then push the branch like you did.
Not: git submodule update --remote (That won't update anything) |
There's quite a bit of pre-ample in the Gutenberg books - I think it's possible to skip this - just not sure how at the moment.
The text was updated successfully, but these errors were encountered: