Lab0x07.
I wrote this code as a driver file for an 8" TFT LCD Touchscreen. It contains 4 methods which track the coordinates of any input to the touchscreen:
- Xscan(): Returns the X coordinate of the input to the touchscreen. If there is no X input, then it returns None.
- Yscan(): Returns the Y coordinate of the input to the touchscreen. If there is no Y input, then it returns None.
- Zscan(): Returns a boolean output which measures if there is an input to the touchscreen. (1 = no input, 0 = input).
- coord(): Returns the touch input as a coordinate system and the response time. Returns in the format: (X, Y, Z), time [us].
- Note
- Unit system of the length inputs must be consistent!
- Author
- Kyle Chuang
- Date
- March 2, 2021