Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active January 11, 2023 03:59
Show Gist options
  • Save lupyuen/726110f8d24416584fe232330ffb1683 to your computer and use it in GitHub Desktop.
Save lupyuen/726110f8d24416584fe232330ffb1683 to your computer and use it in GitHub Desktop.
PinePhone NuttX LVGL Demo Touch Panel Log. Touch Panel Status is set correctly. See https://lupyuen.github.io/articles/touch2
We print the Touch Panel Status before and after setting the Status:
static int gt9xx_read_touch_data(...) {
...
////
ret = gt9xx_i2c_read(dev, GTP_READ_COOR_ADDR, status, sizeof(status));
DEBUGASSERT(ret == OK);
_info("***** Before: status[0]=0x%x\n", status[0]);
////
/* Set the Touch Panel Status to 0 */
ret = gt9xx_set_status(dev, 0);
////
ret = gt9xx_i2c_read(dev, GTP_READ_COOR_ADDR, status, sizeof(status));
DEBUGASSERT(ret == OK);
_info("***** After: status[0]=0x%x\n", status[0]);
////
return OK;
}
Log shows that Status was changed correctly from 0x80 to 0x00...
(But why does Status 0x81 change to 0x80 instead of 0?)
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.2(release):v2.2-904-gf9ea3a629
NOTICE: BL31: Built : 15:32:12, Apr 9 2020
NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE: BL31: Found U-Boot DTB at 0x4064410, model: PinePhone
NOTICE: PSCI: System suspend is unavailable
U-Boot 2020.07 (Nov 08 2020 - 00:15:12 +0100)
DRAM: 2 GiB
MMC: Device 'mmc@1c11000': seq 1 is in use by 'mmc@1c10000'
mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment
starting USB...
No working controllers found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
653 bytes read in 3 ms (211.9 KiB/s)
## Executing script at 4fc00000
gpio: pin 114 (gpio 114) value is 1
356085 bytes read in 19 ms (17.9 MiB/s)
Uncompressed size: 10530816 = 0xA0B000
36162 bytes read in 5 ms (6.9 MiB/s)
1078500 bytes read in 51 ms (20.2 MiB/s)
## Flattened Device Tree blob at 4fa00000
Booting using the fdt blob at 0x4fa00000
Loading Ramdisk to 49ef8000, end 49fff4e4 ... OK
Loading Device Tree to 0000000049eec000, end 0000000049ef7d41 ... OK
Starting kernel ...
- Ready to Boot CPU
- Boot from EL2
- Boot from EL1
- Boot to C runtime for OS Initialize
gt9xx_register: devpath=/dev/input0, i2c_devaddr=93
pinephone_gt9xx_irq_attach:
gt9xx_register: GT9XX Touch Panel registered
nsh: mkfatfs: command not found
NuttShell (NSH) NuttX-11.0.0-pinephone
nsh> lvgldemo widgets
lv_gpto9rxtx__toopuecnh:p a
d
_piinnietp
h
otnoeu_cghtp9axdx _/sdeetv_/pionwpeurt:0 oonp=e1n
i
ng
gt9xx_i2c_read: reg=0x8140, buflen=4
gt9xx_i2c_read (0x40b15a18):
0000 39 31 37 53 917S
gt9xx_probe_device (0x40b15a18):
0000 39 31 37 53 917S
touchpad /dev/input0 open success
touchpad_init
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** Before: status[0]=0x80
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** Before: status[0]=0x80
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** Before: status[0]=0x80
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 81 .
gt9xx_i2c_read: reg=0x8150, buflen=6
gt9xx_i2c_read (0x40b15a88):
0000 1b 02 21 00 16 00 ..!...
gt9xx_read_touch_data: touch down x=539, y=33
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 81 .
gt9xx_read_touch_data: ***** Before: status[0]=0x81
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** After: status[0]=0x80
touchpad_read down: x=539, y=33
gt9xx_read: buflen=32
gt9xx_read: touch up x=539, y=33
touchpad_read up: x=539, y=33
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** Before: status[0]=0x80
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** After: status[0]=0x80
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** Before: status[0]=0x80
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** Before: status[0]=0x80
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 81 .
gt9xx_i2c_read: reg=0x8150, buflen=6
gt9xx_i2c_read (0x40b15a88):
0000 a9 02 20 00 14 00 .. ...
gt9xx_read_touch_data: touch down x=681, y=32
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 81 .
gt9xx_read_touch_data: ***** Before: status[0]=0x81
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
touchpad_read down: x=681, y=32
gt9xx_read: buflen=32
gt9xx_read: touch up x=681, y=32
touchpad_read up: x=681, y=32
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 81 .
gt9xx_i2c_read: reg=0x8150, buflen=6
gt9xx_i2c_read (0x40b15a88):
0000 a9 02 20 00 14 00 .. ...
gt9xx_read_touch_data: touch down x=681, y=32
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 81 .
gt9xx_read_touch_data: ***** Before: status[0]=0x81
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
touchpad_read down: x=681, y=32
gt9xx_read: buflen=32
gt9xx_read: touch up x=681, y=32
touchpad_read up: x=681, y=32
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** Before: status[0]=0x80
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** Before: status[0]=0x80
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 80 .
gt9xx_read_touch_data: ***** Before: status[0]=0x80
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data:
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** Before: status[0]=0x0
gt9xx_set_status: status=0
gt9xx_i2c_write: reg=0x814e, val=0
gt9xx_i2c_read: reg=0x814e, buflen=1
gt9xx_i2c_read (0x40b15a70):
0000 00 .
gt9xx_read_touch_data: ***** After: status[0]=0x0
gt9xx_read: buflen=32
gt9xx_read_touch_data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment