CSE_CST328 is an Arduino library from CIRCUITSTATE Electronics. It helps you interface the CST328 touch controller with your Arduino boards. CST328 can be bought as a standalone touch panel or come integrated with LCD screens like the Waveshare 2.8" Capacitive Touch LCD. The library uses I2C to communicate with the CST328.
This library is available from the official Arduino Library Manager. Open the Arduino IDE, search for "CSE_CST328" and install the latest version of the library.
Additionally, you can download the latest release package from the GitHub repository and install it manually. To do so, open the Arduino IDE, go to Sketch > Include Library > Add .ZIP Library…
and select the downloaded file.
Another method is to clone the GitHub repository directly into your libraries
folder. The development branch will have the latest features, bug fixes and other changes. To do so, navigate to your libraries
folder (usually located at Documents/Arduino/libraries
on Windows and ~/Documents/Arduino/libraries
on macOS) and execute the following command:
git clone https://github.com/CIRCUITSTATE/CSE_CST328.git
Git should be installed on your computer.
The library can also be installed via PlatformIO. All officially listed Arduino listed libraries are automatically fetched by PlatformIO. Use the lib_deps
search option to install the library.
This library does not depend on any other libraries other than the standard Arduino libraries including Wire.
Find the examples in the examples folder.
Please see the API.md file for the API reference.
- CSE_UI - CIRCUITSTATE GitHub - An Arduino GUI library for common TFT/IPS screens.
- Adafruit_FT6206 Library - Where this library took inspiration from.
- TouchLib - An alternate library for the CST328.
- Waveshare 2.8" Capacitive Touch LCD