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

Implement Screen Transitions like on the real PineTime #13

Closed
CoderThomasB opened this issue Mar 10, 2022 · 3 comments · Fixed by #37
Closed

Implement Screen Transitions like on the real PineTime #13

CoderThomasB opened this issue Mar 10, 2022 · 3 comments · Fixed by #37
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@CoderThomasB
Copy link

On the real Pinetime, there is a little animation for scrolling that doesn't show up on the simulated. I assume it's because the clock speed on my laptop is way faster than the Pinetime. Is it possible to purposely slow down the speed of the code to simulate the speed of the real Pinetime and therefore display the animations?

@NeroBurner
Copy link
Collaborator

It's not the speed, it's just the lack of switching animation 🙈

I haven't implemented the screen switching animations and I don't quite know how. As far as I know the pinetime has some kind of hardware support for this switching, but I don't know much more about it.

Would be really awesome if the switching could get implemented

@NeroBurner NeroBurner added enhancement New feature or request help wanted Extra attention is needed labels Mar 10, 2022
@NeroBurner
Copy link
Collaborator

maybe the screen loading API can help https://docs.lvgl.io/7.11/overview/object.html#load-screens

@NeroBurner NeroBurner changed the title Suggestions: Simulate the speed of the real Pinetime. Implement Screen Transitions like on the real PineTime Jun 13, 2022
NeroBurner added a commit that referenced this issue Jun 13, 2022
Move lvgl display init from main.cpp into LittleVgl.cpp to be closer to
InfiniTime, where display initialization is also done in LitteVgl.cpp.

Enable the original FlushDisplay code to get the screen
transition animations like on the real PineTime.

Also slow down the rendering, to actually be able to see the screen
flushing.

For the Up and Down screen transitions implement the screen movement.
When moving Down, move the the whole screen content down, and then draw
the new part of the new screen at the top of the display. Repeat until
screen transition is finished.

Fixes: #13
NeroBurner added a commit that referenced this issue Jun 13, 2022
Move lvgl display init from main.cpp into LittleVgl.cpp to be closer to
InfiniTime, where display initialization is also done in LitteVgl.cpp.

Enable the original FlushDisplay code to get the screen
transition animations like on the real PineTime.

Also slow down the rendering, to actually be able to see the screen
flushing.

For the Up and Down screen transitions implement the screen movement.
When moving Down, move the the whole screen content down, and then draw
the new part of the new screen at the top of the display. Repeat until
screen transition is finished.

Fixes: #13
@NeroBurner
Copy link
Collaborator

Fixed with #37

2022-06-13_screen_switching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants