Cst816s
Rust no_std driver for Hynitron CST816S touch sensitive display
Install / Use
/learn @tstellanova/Cst816sREADME
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
- [x] Blocking mode read of available touch events
- [x] Reading slides and long press gestures
- [ ] Reading click and double-click gestures
- [ ] Interrupt handling of touch events
- [x] Debug build
- [x] Release build
- [x] Debug build of touchpad example runs on PineTime
- [x] 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:
- openocd (built with proper support). We've used an inexpensive ST-Link adapter to with openocd.
- daily build of the Black Magic Probe firmware
- Segger J-Link or similar
When you're ready to install on the PineTime, you can run the example with:
cargo run --example touchpad
Resources
- Datasheet
- Reference Driver in C, from Hynitron.
License
BSD-3-Clause, see LICENSE file.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
