This document provides the reference code for the operation of the STMPE811 touchscreen controller. The first part describes how to initialize the STMPE811 device, while the second part provides two practical methods to handle the data coming from the device.