Author Topic: OLED display with GT911 touch controller (gesture mode) how to use it  (Read 1423 times)

0 Members and 1 Guest are viewing this topic.

Offline up8051Topic starter

  • Frequent Contributor
  • **
  • Posts: 288
  • Country: pl
I have such Winstar OLED display (mono128x64, LCD controller SSD1309, touch controller GT911):
https://www.unisystem.pl/pl/fileuploader/download/download/?d=0&file=custom%2Fupload%2Ffile%2Faa65d2679d76dfce271e3351cd8bd295%2FWEO012864GLPP3D00000.pdf

Display is connected to ATMEGA4809 by SPI and I2C
I can disply any data and use GT911 controller for recognize simple touch and relase.

GT911 controller has the ability to recognize gestures but I can't use it.
After sending command 08-switch to gesture mode (write to register 0x8046 and 0x8040) the panel does not react to any touch.
Data sheet for GT911 is very unclear about configure register related to gesture.
I tried to analyze Linux/Android driver but witout succes.

Has anyone used GT911 controller and knows how to use gesture mode?


« Last Edit: January 03, 2021, 11:11:58 pm by up8051 »
 

Offline darkspr1te

  • Frequent Contributor
  • **
  • Posts: 290
  • Country: zm
Re: OLED display with GT911 touch controller (gesture mode) how to use it
« Reply #1 on: January 12, 2021, 08:32:22 am »
While i've not used this controller myself , I have seen a lot of it's code in the kernel,
Have a look at this file for some examples of gesture setup
https://github.com/shreshthtuli/Goodix-Gt9xx-driver/blob/master/gt9xx_android_driver_v2.8.0.2_20171214(1)/gt9xx_android_driver_v2.8.0.2_20171214/gt9xx_v2.8.0.2/gt9xx.c
 and then there is also this file which has some pre-set configs you can fire at the i2c and it will setup the device.
https://github.com/DiveInEmbedded/GT911-Touch-driver/blob/main/Core/Src/GT911.c

good luck
darkspr1te
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf