cst816s

Crates.iocst816s
lib.rscst816s
version0.1.4
sourcesrc
created_at2020-04-08 00:46:04.366865
updated_at2020-04-13 23:52:46.793412
descriptionCST816S touchscreen driver for embedded hal / no_std
homepage
repositoryhttps://github.com/tstellanova/cst816s
max_upload_size
id227514
size792,589
Todd Stellanova (tstellanova)

documentation

README

cst816s

A rust no_std driver for the Hynan / Hynitron CST816S touchpad device. This driver was originally developed for the PineTime smart watch.

Status

This is work-in-progress

  • Blocking mode read of available touch events
  • Reading slides and long press gestures
  • Reading click and double-click gestures
  • Interrupt handling of touch events
  • Debug build
  • Release build
  • Debug build of touchpad example runs on PineTime
  • Release build of touchpad example runs on PineTime
  • CI
  • Documentation

Examples

The following example was developed for and tested on the PineTime nrf52-based smart watch.

Note that you will need to clear the nrf52 flash protection before you will be able to program the PineTime.

For installation and debugging you can connect with the PineTime on its SWD debug port using, for example:

When you're ready to install on the PineTime, you can run the example with:

cargo run --example touchpad

Resources

License

BSD-3-Clause, see LICENSE file.

Commit count: 19

cargo fmt