1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! # GT9x Touch Screen Controller Driver
//!
//! This crate provides a `no_std` driver for the GT9x series of capacitive touch screen controllers.
//! It supports both asynchronous and blocking I2C communication.
//!
//! ## Supported Chips
//!
//! - GT911 (5 points)
//! - GT928 (10 points)
//! - GT9147 (5 points)
//!
//! ## Features
//!
//! - `async`: Enables the asynchronous driver based on `embedded-hal-async`. This is a default feature.
//! - `blocking`: Enables the blocking driver based on `embedded-hal`.
//! - `defmt`: Enables logging with `defmt`.
//!
//! ## Usage
//!
//! ### Asynchronous Driver
//!
//! ```no_run
//! use gt9x::{Gt911, Gt9x};
//! # use embedded_hal_async::i2c::I2c;
//! # use embedded_hal_async::digital::Wait;
//!
//! // let i2c: I2c = ...;
//! // let mut int_pin: Wait = ...;
//! // let mut buf = [0u8; 64];
//!
//! // Without interrupt pin
//! // let mut gt9x = Gt9x::<Gt911, _, _, _>::new(i2c, &mut buf);
//!
//! // With interrupt pin
//! // let mut gt9x_int = Gt9x::<Gt911, _, _, _>::new_int(i2c, &mut buf, int_pin);
//! ```
//!
//! ### Blocking Driver
//!
//! ```no_run
//! use gt9x::{Gt911, Gt9xBlocking};
//! # use embedded_hal::i2c::I2c;
//!
//! // let i2c: I2c = ...;
//! // let mut buf = [0u8; 64];
//!
//! // let mut gt9x = Gt9xBlocking::<Gt911, _>::new(i2c, &mut buf);
//! ```
/// Asynchronous driver implementation
/// Blocking driver implementation
pub use *;
pub use ;
pub use Gt9x as Gt9xBlocking;