public void Reset() { IRQ.Unset(); currentReturnValue = null; lastWriteRegister = 0; for(ushort i = 0; i < touchedPoints.Length; ++i) { touchedPoints[i] = new TouchedPoint { Type = PointType.Reserved, X = 0, Y = 0, Id = i }; } }
public FT5x06 (Machine machine, int maxPoints = 5) { this.machine = machine; maxSupportedPoints = maxPoints; points = new TouchedPoint[maxSupportedPoints]; for (ushort i = 0; i< points.Length; ++i) { points [i] = new TouchedPoint () { Type=PointType.Reserved, X = 0, Y = 0, Id = i }; } IRQ = new GPIO (); Reset (); }