Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft5336

FT5336 capacitive touch controller driver for bare-metal Ada applications.

Overview

ft5336 provides a driver for the FocalTech FT5336 capacitive touch controller. It implements the touch_generic interface over I2C, supporting up to 10 simultaneous touch points.

Features

  • FT5336 chip-specific register definitions
  • I2C communication protocol
  • Multi-touch support (up to 10 points)
  • Chip ID validation
  • Interrupt or polling modes
  • Coordinate transformation support

API

generic
   with procedure Driver_Write_Read (Target : I2C_Types.I2C_Address; Tx_Buf, Rx_Buf : Storage_Array);
   with procedure Driver_Write (Target : I2C_Types.I2C_Address; Buf : Storage_Array);
   I2C_Address : I2C_Types.I2C_Address;

package FT5336_Interface is
   function  Driver_Check_Id return Boolean;
   procedure Driver_Set_Use_Interrupts (Enabled : Boolean);
   procedure Driver_Set_Bounds (Width, Height : Natural; Swap : Swap_State);
   function Driver_Active_Touch_Points return Touch_Identifier;
   function Driver_Get_Touch_Point (Id : Touch_Identifier) return Touch_State;
end FT5336_Interface;

Integration

[[depends-on]]
ft5336 = "^0.1.0"

Dependencies

  • touch_generic - Touch controller interface
  • i2c_generic - I2C bus interface

License

MIT OR Apache-2.0 WITH LLVM-exception

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages