xpt2046

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2023 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Overview

Package xpt2046 implements a driver for the XPT2046 resistive touch controller as packaged on the TFT_320QVT board

Datasheet: http://grobotronics.com/images/datasheets/xpt2046-datasheet.pdf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Precision uint8
}

type Device

type Device struct {
	// contains filtered or unexported fields
}

func New

func New(t_clk, t_cs, t_din, t_dout, t_irq machine.Pin) Device

func (*Device) Configure

func (d *Device) Configure(config *Config) error

func (*Device) ReadTouchPoint

func (d *Device) ReadTouchPoint() touch.Point

func (*Device) Touched

func (d *Device) Touched() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL