Watchface click on weather and steps - #2481
Conversation
|
Force push to fix formatting |
|
Build size and comparison to main:
|
|
This is a great idea! I think I'll implement this as well for my watchface (#2307) and I'll make sure to @ you for this idea. |
|
After playing around with it for a while, you should use LV_EVENT_CLICKED instead of pressed, so that it doesnt fire when scrolling around |
Cool. Thanks for the feedback. I was going to investigate that as the settings menu is quite happy with scrolling and not triggering a setting menu 😀 I'll update the PR. |
|
I noticed it because on my watch face, weather is in the top middle, which made scrolling down for notifications a pain in the ass 😅 |
|
Oh, wow, LV_EVENT_CLICKED is much, much, much better. The Digital watch face also has the weather in the middle of the screen but swiping now works as expected. |
|
@tituscmd there is one bug that I'm failing to get to the bottom of. I'm pretty sure that when you flash it, clicking on the icons won't work unless you go to another screen first. I can also recreate it by being on the watch face, long holding the button to take you to I had the same issue before I passed the DisplayApp to the screen the icon takes you to. Before that, when you returned to the watch face, you couldn't click on an icon until you left the watch face and returned. So it's something to do with that. |
Yes, I was surprised how big of an impact it had as well! |
Funnily enough, I just encountered this bug a few minutes ago too. I also don't know what's causing it yet...
This seems to be a great lead tho. I'll try to look into it, but maybe someone with more knowledge about the deeper workings of the PT could chime in here :D |
|
What I find interesting, it seems to work on first press after waiting a few seconds just sitting on the watch face after wake |
|
Also prevents clicking the icons if you long press the button to jump back to the watch face. I think it may have something to do with InfiniTime/src/displayapp/DisplayApp.cpp Line 464 in 8250565 |
It's the same behaviour with swiping too. It's present on the current main branch, even compiled with GCC 10.3. Having said that, it could just be a delay in the touch screen software/hardware initialisation. |
|
Refactor fixes the edge cases we have seen. |
|
Running on PT hardware but also checked in InfiniSim to ensure the |
Very interesting. I had noticed this before with swiping and had thought there was something wrong with my custom firmware. Good to know it's a different issue! |
|
@tituscmd if you want instant gestures on the display when it wakes up, enable double tap to wake up as that doesn't put the touch controller to sleep. InfiniTime/src/systemtask/SystemTask.cpp Line 324 in 8250565 InfiniTime/src/systemtask/SystemTask.cpp Line 415 in 8250565 |
|
What I find interesting, it seems to work on first press after waiting a few seconds just sitting on the watch face after wake
Thanks for the heads-up, but I rarely use any tap-to-wake at all. I'm a raise-to-wake kinda guy 😎 |
You don't need to make use of the double tap to wake. It just prevents the touch screen going to sleep (and having to wake up - slowely). You can still be a raise-to-wake guy 😉 |
Oh! That's perfect then. I will definitely be making use of that! |
Oof, typical current draw for leaving the touch sensor on is 2.5mA. I have noticed a rapid drop in battery level today so I'll be living with the slow initialisation in favor of significantly longer battery life. |
Another proof of concept.
Shortcut from the digital watch face to jump to the weather app and steps app when you tap the watch face icons and then jump back to the watch face when you leave weather or steps.
It doesn't work so well on the digital watch face as the weather icon is in the middle of the screen. So swiping up and down can trigger a trip to the weather app.I've implemented this on the Legend watch face (which is where I really wanted this feature), along with tapping the battery percent in the top right to take you to BatteryInfo.
It works really well with the battery percent, steps and weather in the corners of the Legend watch face.My intention is to update this PR for the Legend watch face when it's merged into main. And after I've implemented any feedback 😀