FT5336 capacitive touch controller driver for bare-metal Ada applications.
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.
- 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
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;[[depends-on]]
ft5336 = "^0.1.0"touch_generic- Touch controller interfacei2c_generic- I2C bus interface
MIT OR Apache-2.0 WITH LLVM-exception