When touched the touchscreen generates an interrupt. (see samples/basic/testirq)
When touched the touchscreen becomes visible on the i2c-bus. (see samples/basic/scani2c)
When the touchscreen is visible, one should be able to read 63 consequetive registers (mass read)
I had no succes using the standard zephyr function.
I tried (see samples/basic/scani2c)
msgs[1].buf = &buffer[0];
msgs[1].len = 63U;
msgs[1].flags = I2C_MSG_READ | I2C_MSG_STOP;
When touched the touchscreen generates an interrupt. (see samples/basic/testirq) When touched the touchscreen becomes visible on the i2c-bus. (see samples/basic/scani2c)
When the touchscreen is visible, one should be able to read 63 consequetive registers (mass read) I had no succes using the standard zephyr function.
I tried (see samples/basic/scani2c) msgs[1].buf = &buffer[0]; msgs[1].len = 63U; msgs[1].flags = I2C_MSG_READ | I2C_MSG_STOP;
but this executes only once (why?)
it should work : see https://medium.com/@ly.lee/building-a-rust-driver-for-pinetimes-touch-controller-cbc1a5d5d3e9