搜索
搜索
回康医疗
jiajie 您现在所在位置:
首页
/
/
IC FT6X36_墨水屏显示模块配套触屏的更多信息

IC FT6X36_墨水屏显示模块配套触屏的更多信息

  • 分类:技术支持
  • 作者:
  • 来源:
  • 发布时间:2022-11-01 02:52
  • 访问量:

【概要描述】

IC FT6X36_墨水屏显示模块配套触屏的更多信息

【概要描述】

  • 分类:技术支持
  • 作者:
  • 来源:
  • 发布时间:2022-11-01 02:52
  • 访问量:
详情

IC FT6X36_墨水屏显示模块配套触屏的更多信息

 

FocalTech的触摸组件已经完全实现,因此这个wiki将成为积压工作,帮助其他人了解触摸的工作原理。

https://github.com/martinberlin/cale-idf/wiki/Touch-research-for-IC--FT6X36

I2C 指令表

FocalTech I2C command reference

事件触发时通过I2C读取的信息。在这种情况下,INT引脚将减少,回调函数将从TP读取信息。重要细节:

0x01 GEST_ID Gesture ID. Not relevant in this model from Goodisplay (Comes always 0, no matter what is done)
0x02 TD_STATUS Number of touch points (Taping with two fingers sometimes returns a 2) Does not seem relevant
0x03 P1_XH 1st X (High part)
0x04 P1_XL 1st X (Low part)
0x05 P1_YH 1st Touch ID + First Y (High part)
0x06 P1_YL 1st Y (Low part)
0x07 P1_WEIGHT Touch weight. Does not interest me so far comes either 0x00 or 0xFF (When a strong press)
0x08 P1_MISC  Does not seem relevant in this model 
0x09 P2_XH 2nd X (High part)
0x0A P2_XL 2nd X (Low part)
0x0B P2_YH 2nd Touch ID + 2nd Y (High part)
0x0C P2_YL 2nd 2nd Y (Low part)
0x0D P2_WEIGHT Touch weight for point 2
0x0E P2_MISC

每个I2C返回总共13个有趣的字节,用于分析触摸信息。需要分析且无法使用RAW的
由于快速爆震问题,将发生两个事件。
单击事件并引发它。因此,如果您对每个事件做出反应,请单击按钮两次。
这需要通过软件进行分析。只有当升级事件间隔300毫秒时,才会触发TAP事件。
这表示需要分析源事件以将其包含在已处理的事件中。
寄存器中的常见TAP事件:

Tr is Touch RAW.
REGISTERS: Press event
0:0 1:0 2:1 3:0 4:16 5:0 6:72 7:0 8:0 9:ff a:ff b:ff c:ff d:ff e:ff f:ff 
TOUCHES: 1  -> 1 single point touched
Tr[0]=0 1st -> PressDown
Tr[1]=3 2nd -> NoEvent (True since there is only 1 pressed point)

REGISTERS: Release event
0:0 1:0 2:0 3:40 4:16 5:0 6:72 7:0 8:0 9:ff a:ff b:ff c:ff d:ff e:ff f:ff 
TOUCHES: 0  -> We release hence there is no touches count
Tr[0]=1 1st -> LiftUp
Tr[1]=3 2nd -> NoEvent

RESULT AFTER PROCESSING:
X: 22, Y: 114, E: Tap  (Only if there are less than 300 milliseconds of difference between press/release)

注意:(0)并不总是用作初始事件。有时,联系(2)是第一个。我真的不知道两者之间的区别。然而,当触摸板未被用力按压时,可能会触发接触。仅在压力较高时按下。因此,如果第一个事件是0或2(时间戳测量),然后是1 LiftUp事件,建议进行批检查。当触摸和抬起之间的差值小于300毫秒时,将触发TAP事件。
该模型不返回手势,因此需要补充。另一个有趣的例子是: Strange-v FT6X36 esp32 library :

  • Tap
  • DragStart
  • TouchMove
  • DragEnd

It would be nice to have based on the double lecture of the X, Y & Event points:

  • Zoom IN
  • Zoom OUT

If the X & Y are expanding on the second lecture of the points then we have a Zoom in otherwise is a Zoom out event. This along with Dragging could be very useful when showing a map in the small epaper.

扫二维码用手机看

这是描述信息

img

img

img

img

©2007-2021   大连点墨电子科技有限公司   版权所有    辽ICP备2021012387号-2       网站建设:中企动力 大连

©2021   大连点墨电子科技有限公司版权所有   

辽ICP备08000578号 网站建设:中企动力 锦州