
CE223726 – PSoC 6 TFT Display Interface
with EmWin Graphics Library
www.cypress.com Document Number: 002-23726 Rev. *B 1
Objective
This code example shows how to control a TFT display using EmWin Graphics Library in PSoC® 6 MCU.
Overview
This code example demonstrates how to display graphics on a TFT display using EmWin Graphics Display Library. EmWin
graphics library implements 2D graphics and provides easy-to-use API functions to display text, 2D graphics (lines, rectangles,
circles, etc.), and bitmap images. In PSoC Creator™, EmWin graphics library is implemented as a PDL middleware library.
This code example assumes that you are familiar with the PSoC 6 MCU and the PSoC Creator Integrated Design Environment
(IDE). If you are new to PSoC 6 MCU, see the application note AN210781 – Getting Started with
PSoC 6 MCU with Bluetooth Low Energy (BLE) Connectivity.
For details of EmWin Graphics Library API, see the EmWin documentation UM03001_emWin5.pdf in the Program Files
(x86)\Cypress\PDL\3.x.x\doc\ folder.
Requirements
Tool: PSoC Creator 4.2; Peripheral Driver Library (PDL) 3.0.4
Programming Language: C (Arm® GCC 5.4.1)
Associated Parts: All PSoC 6 MCUs
Related Hardware: CY8CKIT-062-BLE PSoC 6 BLE Pioneer Kit, CY8CKIT-028-TFT TFT Shield
Hardware Setup
1. Plug in the TFT display shield on to the Pioneer Board as Figure 1 shows.
Figure 1. Hardware Setup
2. Set the switches and jumpers on the Pioneer Board as shown in Table 1.
Table 1. Switch and Jumper Selection

PSoC 6 TFT Display Interface with EmWin Graphics Library
www.cypress.com Document Number: 002-23726 Rev. *B 2
Software Setup
Install the CY8CKIT-62-BLE PSoC 6 BLE Pioneer Kit software, which contains all the required software to evaluate this code
example. No additional software setup is required.
Operation
1. Connect the Pioneer Board to your PC using the provided USB cable through the USB connector (J10).
Figure 2. Connecting the USB Cable to the Pioneer Board
2. Program the Pioneer Board with the CE23726_EmWin_TFT_Display_ST7789 project. See the CY8CKIT-062-BLE kit guide
for details on how to program firmware into the device.
The TFT display shows the startup screen for three seconds, followed by a screen that displays instructions to press SW2
to scroll through various demo pages. Press SW2 to advance through the following pages that demonstrate various graphics
features in EmWin.
• Text alignments, styles, and modes
• Text colors
• Normal fonts of various sizes
• Bold fonts of various sizes
• Color bars
• 2D graphics with vertical lines, horizontal lines, arcs, and rectangles
• 2D graphics with concentric circles and ellipses, and rectangles with gradient fills
• Concentric circles
• Bitmap image
Figure 3 shows the startup and instructions screens. Figure 4 shows all the screens that are shown in sequence.

PSoC 6 TFT Display Interface with EmWin Graphics Library
www.cypress.com Document Number: 002-23726 Rev. *B 3
Figure 3. Startup Screen and Instructions Screen

PSoC 6 TFT Display Interface with EmWin Graphics Library
www.cypress.com Document Number: 002-23726 Rev. *B 4
Figure 4. Pages Shown in Sequence
Important Note:
When you build the project, you will see the following notification. Click OK.