Is there any way to diagnose the FT5316Controller?

Well, well, well. Guess what the problem was. The connector on the green breakout board differs from the one in the box. It seems I was plugging in the wire upside down. I am now able to get touch input. On to the next issue. “How to touch Avalonia”

Edit: The image shows the correct way. Also, the seller confirmed that the additional power pins must also be connected.

2 Likes

Well, Avalonia touch works.

 var input = new InputDevice();

 var touch = new FT5xx6Controller(EPM815.I2c.I2c6, EPM815.Gpio.Pin.PA4);

 touch.TouchUp += (s, e) =>
 {
     input.UpdateTouchPoint(e.X, e.Y, GHIElectronics.Endpoint.Drivers.Avalonia.Input.TouchEvent.Released);
 };
 touch.TouchDown += (s, e) =>
 {
     input.UpdateTouchPoint(e.X, e.Y, GHIElectronics.Endpoint.Drivers.Avalonia.Input.TouchEvent.Pressed);
 };
1 Like

I did mention somewhere: “if the connection is correct…” :d

I was so sure it was plugged in. Then, I looked at both connectors and realized the pins were in different places. Also, all the GNDs and VDDs needed to be connected. That was super confusing as well.

1 Like