-
-
Notifications
You must be signed in to change notification settings - Fork 968
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
Update touchpad driver and automatically detect errors #489
Conversation
|
There's no actual need to display the info about the chip as the Pinetime always use the same chip, but it could help to debug issues with the touchpanel (factory installs another chip, chip fails to initialize,... -> display "???" or "Error" in that case, for example). |
It seems that this information can be useful to detect faulty hardware #590. |
Would you resolve conflicts here or make another PR?
|
@Riksu9000 i don't think it's useful to add a rectangular button in order to "proceed" because the user will be unable to click on it since the touch controller don't work to begin with. it's better to remove the button (that's make the user angry since he can't click on it how much he want/try ) so the user can use infinitime , as an smartwatch (the watch can still be able to connect to gadgetbridge for time sync) but the user might be unable to validate the firmware regardless , since it need a functional touch controller. this pull may be usefull for pine64 , for detecting faulty watch and prune them instead of sending to user |
The screen can be closed by pressing the physical button. |
@Riksu9000 it's still redundant then because , as user , i will try first to press the button "proceed " the "proceed" button feel like a nagging button and that's not good for someone that already have a bad product... |
This screen can be used to warn about other errors as well, in which case the proceed button makes more sense. Also touch could still just work if the warning is a false positive. The user might miss the warning entirely if there was a timeout, so I think it should require confirmation from the user. |
As an owner of PineTime and Colmi P8. Acording to this message, this warning screen appears on Colmi P8 everytime after boot. I see InfiniTime project should be more open to be ported on other devices. I feel like this might hurt/annoy more people developing on other platforms or nrf52 kits. If this was created because of one person was having issues, then if anyone else will ever ask, we can guide him to this thread where you created firmware showing those 3 registers on screen. #590 (comment) Does this check really needs to be so strict on reading 3 internal registers (if I checked it right). Wouln't be enought to check whether the touch screen I2C address sends ACK so the sensor is there and correctly connected to the I2C? |
InfiniTime officially only supports the PineTime and the Cst816 controller currently. The controller used in the P8 isn't compatible with the new touch handler currently, so showing a warning because of an unsupported controller is appropriate isn't it? If official support for the Cst716 controller was added, then that controller could be whitelisted by allowing fwVersion to be either 1 or 2. 1 is for Cst816 and 2 is for Cst716. |
@Riksu9000 & @hubmartin Now, I know that @hubmartin is very involved in a port of InfiniTime on the ColmiP8, and I really appreciate that! I would like to explore solutions that would allow us to continue working on InfiniTime for the PineTime while allowing some contributors to maintain ports for other targets. Should these port be forks of InfiniTime, completely independent from this project, or should InfiniTime be slightly refactored to be more easily ported across different devices? My long term dream is to port InfiniTime to the BL60x MCU, so porting to the P8 (which is a lot more similar to the PineTime than any BL60x board) might be a first step to this goal. |
After thinking, I don't know I'll find time and motivation to fix cst718 driver for P8. It was nice bonus, that it worked before touch driver update. I understand your primary focus on your PineTime hardware. |
Thanks, @Riksu9000 ! |
Cleaned up unused parts.
Already added in #492isTouch
was buggy. Replaced withisValid
andtouching
.Read information about the chip and display it in SystemInfo in format
ChipId.VendorId.FwVersion
.