JohnySeven / TWatchSK

TTGO T-Watch 2020 v1 supporting Signal K features for displaying boat data and controlling devices on board.
MIT License
9 stars 1 forks source link

BUG? "Touch screen" to wakeup the watch leaves it awake for the full Screen Timeout time #78

Closed ba58smith closed 2 years ago

ba58smith commented 2 years ago

This may be on purpose, but the other two wakeup methods (double tap and tilt) leave the screen on only for 2 seconds, just long enough to check the time.

@JohnySeven , let me know if this is what you intended for the "touch" wakeup. If it is, that's how I'll document it. If it's not, I'll see if I can fix it.

JohnySeven commented 2 years ago

Well, it's good question. I'm using currently touch to wake up only and have other wakups disabled. I would leave it for now as it is. In future I would make wake up timeout same for all wakeups and add prolonged period when you touch the watch - this is now possible as we have touch input under our control.

ba58smith commented 2 years ago

Could we use the same touch that wakes up the watch to put the watch back to sleep? Then the "touch the screen" would do exactly what the physical button does - wakes up the watch if it's asleep, and puts it to sleep if it's awake.

JohnySeven commented 2 years ago

Well we need to distinguish between turn off touch and real touch on button or any other UI element. Not sure if that would work out good.

I was thinking about adding quick menu that would show after clicking on status bar - something like on Android where you swipe down and you can turn on/off wifi, bt and many more.

ba58smith commented 2 years ago

Well we need to distinguish between turn off touch and real touch on button or any other UI element. Not sure if that would work out good.

Maybe not. I was thinking that a "long touch" could be distinguished from a "touch and release". The long touch would blank the screen, the touch and release would be to select a UI component (button, text field, switch, etc.) But it's not important - we always have the external button to turn off the screen.

I like your idea for the Android-like quick menu. But not in version 1, please!

ba58smith commented 2 years ago

I will write the documenation to reflect how the touch wake-up works now. That gives everyone a lot of options for waking up.

JohnySeven commented 2 years ago

Good point about the long press, that's something we can detect just fine.

ba58smith commented 2 years ago

Maybe later. For now, I think it's OK to leave it as-is. (Unless you REALLY want to do it.)