Skip to content

Fix byte order in GT911 driver#98

Open
senjaster wants to merge 1 commit intolvgl-micropython:mainfrom
senjaster:fix_gt911_driver
Open

Fix byte order in GT911 driver#98
senjaster wants to merge 1 commit intolvgl-micropython:mainfrom
senjaster:fix_gt911_driver

Conversation

@senjaster
Copy link

Byte order in GT911 driver is swapped.
Also some other minor fixes

@senjaster
Copy link
Author

Patched indev driver works (it prints message like GT911(raw_x=218, raw_y=224, x=227, y=221, state=PRESSED) in debug mode), but lvds still stops updating screen after driver creation. Still, it's better than nothing

@ThomasFarstrike
Copy link
Contributor

ThomasFarstrike commented Feb 12, 2026

Strange, I have the normal GT911 working properly on this device: https://github.com/MicroPythonOS/MicroPythonOS/blob/main/internal_filesystem/lib/mpos/board/matouch_esp32_s3_spi_ips_2_8_with_camera_ov3660.py

I made a few changes, like at the hw_reset() so that the device stays on 0x14 instead of "jumping" to 0x5D, and I added interrupt handling code (which doesn't work properly on MicroPython, so it's disabled), but I didn't need to change any byte order...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants