cst328
A pure Rust driver for the CST328 touch controller device (datasheet). This driver supports the following:
- Various hardware via
embedded-hal - A
no_stdenvironment - both sync and async API's
This library supports either (but not both) synchronous (blocking) or
asynchronous (non-blocking) API's. One and only one of the following
features must be defined: use_sync or use_async.
Installation
Add this to your Cargo.toml:
[]
= { = "1.0", = ["use_sync"] } # or "use_async"
Example
use ;
use ;
let i2c = // Create I2C device.
let mut dev = new;
match dev.read_finger.await
See the full working examples in the project ///examples directory.