InfiniTime icon indicating copy to clipboard operation
InfiniTime copied to clipboard

Colors invert randomly

Open Alerymin opened this issue 2 years ago • 17 comments

Verification

  • [x] I searched for similar bug reports (including closed issues) and found none was relevant.

What happened?

Colors inverted for no apparent reason

What should happen instead?

Colors should stay the same

Reproduction steps

?

More details?

Looks similar to #1022 but did not happen when charging Happened on 2 different Infinitime watches IMG_20240119_193153_564 IMG_20240119_193202_507

Version

1.14.0

Companion app

No response

Alerymin avatar Jan 19 '24 18:01 Alerymin

yea i'm really not sure why this happens, and i've seen it occur multiple times while working with the display driver. My best guess is there is some issue with how we are writing to the LCD control register, and accidentally (perhaps an overflow) writing the command to invert the colors. I'll have to do some investigation to be sure though

KaffeinatedKat avatar Jan 21 '24 23:01 KaffeinatedKat

I have seen this happen. Would a (temporary) work-around be to assert the flag to not invert colours when accessing a screen, e.g. watchface / info.

riban-bw avatar Jan 23 '24 13:01 riban-bw

This has happened to me, but I know a way of reproducing this issue.

You need to turn on lower wrist to put the watch to sleep and go to the paint app, then just keep holding the screen and lower it until the screen turns off, and after you turn the screen on again, all the colors are inverted, I have attached a video showing it.

It may have something to do with the issue #1992

https://github.com/InfiniTimeOrg/InfiniTime/assets/77130196/e7b14534-f661-42e3-80b6-b7260d171014

DEPSUT avatar Jan 31 '24 17:01 DEPSUT

I can reproduce this as well. This issue seems to also be the roots of the issue we're experiencing with #1869 (https://github.com/InfiniTimeOrg/InfiniTime/pull/1869#issuecomment-1915865847). There is some kind of issue with how the display is being controlled (SPI), which is causing unexpected behavior with the display

KaffeinatedKat avatar Jan 31 '24 18:01 KaffeinatedKat

Having a consistent repro is amazing, thanks!!!!

mark9064 avatar Jan 31 '24 23:01 mark9064

I managed to trigger this bug by turning off and on multiple times the watch. I never managed to reproduce it though.

Alerymin avatar Apr 08 '24 21:04 Alerymin

I've just merged ~~@2046~~ #2046 ! This issue will hopefully not occur again :) Thanks to @mark9064 for their great work!

JF002 avatar May 01 '24 14:05 JF002

I've just merged @2046!

I think maybe you didn't intend to @ the user 2046 but instead refer to #2046? :)

Saarsk avatar Jun 04 '24 16:06 Saarsk

I think maybe you didn't intend to @ the user 2046 but instead refer to #2046? :)

You're right, thanks for letting me know about this typo (and sorry to user 2046 for the unexpected ping :) ).

JF002 avatar Jun 09 '24 16:06 JF002