⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adc-lh7-touchscreen

📁 最新版本的Linux内核
💻
字号:
README on the ADC/Touchscreen Controller========================================The LH79524 and LH7A404 include a built-in Analog to Digitalcontroller (ADC) that is used to process input from a touchscreen.The driver only implements a four-wire touch panel protocol.The touchscreen driver is maintenance free except for the pen-down ortouch threshold.  Some resistive displays and board combinations mayrequire tuning of this threshold.  The driver exposes some of it'sinternal state in the sys filesystem.  If the kernel is configuredwith it, CONFIG_SYSFS, and sysfs is mounted at /sys, there will be adirectory  /sys/devices/platform/adc-lh7.0containing these files.  -r--r--r--    1 root     root         4096 Jan  1 00:00 samples  -rw-r--r--    1 root     root         4096 Jan  1 00:00 threshold  -r--r--r--    1 root     root         4096 Jan  1 00:00 threshold_rangeThe threshold is the current touch threshold.  It defaults to 750 onmost targets.  # cat threshold 750The threshold_range contains the range of valid values for thethreshold.  Values outside of this range will be silently ignored.  # cat threshold_range  0 1023To change the threshold, write a value to the threshold file.  # echo 500 > threshold  # cat threshold  500The samples file contains the most recently sampled values from theADC.  There are 12.  Below are typical of the last sampled values whenthe pen has been released.  The first two and last two samples are fordetecting whether or not the pen is down.  The third through sixth areX coordinate samples.  The seventh through tenth are Y coordinatesamples.  # cat samples  1023 1023 0 0 0 0 530 529 530 529 1023 1023To determine a reasonable threshold, press on the touch panel with anappropriate stylus and read the values from samples.  # cat samples  1023 676 92 103 101 102 855 919 922 922 1023 679The first and eleventh samples are discarded.  Thus, the importantvalues are the second and twelfth which are used to determine if thepen is down.  When both are below the threshold, the driver registersthat the pen is down.  When either is above the threshold, itregisters then pen is up.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -