#embedded-hal-driver #cst816s #touchscreen #pine-time

no-std cst816s

CST816S touchscreen driver for embedded hal / no_std

5 releases

0.1.4 Apr 13, 2020
0.1.3 Apr 10, 2020
0.1.2 Apr 10, 2020
0.1.1 Apr 8, 2020
0.1.0 Apr 8, 2020

#404 in Embedded development

Download history 24/week @ 2021-02-20 20/week @ 2021-02-27 1/week @ 2021-03-06 12/week @ 2021-03-13 11/week @ 2021-03-20 11/week @ 2021-03-27 6/week @ 2021-04-03 12/week @ 2021-04-10 7/week @ 2021-04-17 17/week @ 2021-04-24 1/week @ 2021-05-01 1/week @ 2021-05-08 6/week @ 2021-05-15 2/week @ 2021-05-22 2/week @ 2021-05-29 7/week @ 2021-06-05

53 downloads per month

BSD-3-Clause

520KB
181 lines

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.

Dependencies

~565KB
~11K SLoC