Documentation ¶
Overview ¶
Package ft6336 provides a driver for the FT6336 I2C Self-Capacitive touch panel controller.
Datasheet: https://focuslcds.com/content/FT6236.pdf
Index ¶
- Constants
- type Config
- type Device
- func (d *Device) Configure(config Config) error
- func (d *Device) GetFirmwareID() uint8
- func (d *Device) GetGMode() uint8
- func (d *Device) GetPeriodActive() uint8
- func (d *Device) Read() []byte
- func (d *Device) ReadTouchPoint() touch.Point
- func (d *Device) SetGMode(v uint8)
- func (d *Device) SetPeriodActive(v uint8)
- func (d *Device) Touched() bool
Constants ¶
View Source
const ( Address = 0x38 RegPeriodActive = 0x88 RegGMode = 0xA4 RegFirmid = 0xA6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Address uint8 // contains filtered or unexported fields }
Device wraps FT6336 I2C Self-Capacitive touch
func (*Device) GetFirmwareID ¶
GetFirmwareID gets firmware version.
func (*Device) GetPeriodActive ¶
GetPeriodActive gets report rate in Active mode.
func (*Device) ReadTouchPoint ¶
ReadTouchPoint reads a single touch.Point from the device. The maximum value for each touch.Point is 0xFFFF.
func (*Device) SetGMode ¶
SetGMode sets interrupt mode.
0x00 : Interrupt Polling mode 0x01 : Interrupt Trigger mode (default)
func (*Device) SetPeriodActive ¶
SetPeriodActive sets report rate in Active mode.
Click to show internal directories.
Click to hide internal directories.